mirror of
https://github.com/SonarSource/sonarqube-scan-action.git
synced 2026-10-07 12:01:40 +00:00
SQSCANGHA-138 Update dist and add ci test (#233)
Co-authored-by: Jarek Potiuk <jarek@potiuk.com>
This commit is contained in:
1 parent
c8357220fa
commit
30dbe5c9ee
1 file changed
+11
@@ -27,5 +27,16 @@ jobs:
|
|||||||
- name: Install dependencies
|
- name: Install dependencies
|
||||||
run: npm ci
|
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
|
- name: Run tests
|
||||||
run: npm test
|
run: npm test
|
||||||
Reference in new issue
Block a user