mirror of
https://github.com/SonarSource/sonarqube-scan-action.git
synced 2026-04-21 20:49:28 +03:00
Add build and dist/ freshness check to CI
This commit is contained in:
committed by
antoine.vinot
parent
c8357220fa
commit
a100e88166
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user