mirror of
https://github.com/SonarSource/sonarqube-scan-action.git
synced 2026-05-14 22:55:54 +00:00
Bumps [actions/setup-node](https://github.com/actions/setup-node) from 6.3.0 to 6.4.0.
- [Release notes](https://github.com/actions/setup-node/releases)
- [Commits](53b83947a5...48b55a011b)
---
updated-dependencies:
- dependency-name: actions/setup-node
dependency-version: 6.4.0
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com>
42 lines
1,010 B
YAML
42 lines
1,010 B
YAML
name: Unit tests
|
|
|
|
on:
|
|
push:
|
|
branches: [master]
|
|
pull_request:
|
|
|
|
jobs:
|
|
test:
|
|
runs-on: github-ubuntu-latest-s
|
|
permissions:
|
|
id-token: write
|
|
contents: read
|
|
|
|
steps:
|
|
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
|
|
|
|
- name: Setup Node.js
|
|
uses: actions/setup-node@48b55a011bda9f5d6aeb4c2d9c7362e8dae4041e #v6.4.0
|
|
with:
|
|
node-version: "24"
|
|
cache: "npm"
|
|
|
|
- name: Configure NPM with Repox
|
|
uses: SonarSource/ci-github-actions/config-npm@v1
|
|
|
|
- name: Install dependencies
|
|
run: npm ci
|
|
|
|
- name: Build
|
|
run: npm run build
|
|
|
|
- name: Check dist/ is up-to-date
|
|
run: |
|
|
if ! git diff --exit-code dist/ || [ -n "$(git status --porcelain dist/)" ]; then
|
|
echo "::error::dist/ is out of date. Run 'npm run build' and commit the changes."
|
|
git status --short dist/
|
|
exit 1
|
|
fi
|
|
|
|
- name: Run tests
|
|
run: npm test
|