mirror of
https://github.com/SonarSource/sonarqube-scan-action.git
synced 2026-05-22 18:05:57 +00:00
Add build and dist/ freshness check to CI
This commit is contained in:
parent
c8357220fa
commit
a100e88166
1 changed files with 11 additions and 0 deletions
11
.github/workflows/unit-tests.yml
vendored
11
.github/workflows/unit-tests.yml
vendored
|
|
@ -27,5 +27,16 @@ jobs:
|
|||
- name: Install dependencies
|
||||
run: npm ci
|
||||
|
||||
- name: Build
|
||||
run: npm run build
|
||||
|
||||
- name: Check dist/ is up-to-date
|
||||
run: |
|
||||
if [ -n "$(git status --porcelain)" ]; then
|
||||
echo "::error::dist/ is out of date. Run 'npm run build' and commit the changes."
|
||||
git status --short
|
||||
exit 1
|
||||
fi
|
||||
|
||||
- name: Run tests
|
||||
run: npm test
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue