mirror of
https://github.com/SonarSource/sonarqube-scan-action.git
synced 2026-04-21 20:49:28 +03:00
Compare commits
1 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| 1ebaea7c36 |
@@ -433,7 +433,7 @@ jobs:
|
||||
with:
|
||||
token: ${{ secrets.GITHUB_TOKEN }}
|
||||
- name: SonarQube Cache
|
||||
uses: actions/cache@668228422ae6a00e4ad889ee87cd7109ec5666a7 # v5.0.4
|
||||
uses: actions/cache@27d5ce7f107fe9357f9df03efb73ab90386fccae # v5.0.5
|
||||
with:
|
||||
path: ${{ github.workspace }}/.sonar/cache
|
||||
key: ${{ runner.os }}-${{ runner.arch }}-sonar
|
||||
|
||||
@@ -27,16 +27,5 @@ jobs:
|
||||
- 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
|
||||
|
||||
Reference in New Issue
Block a user