mirror of
https://github.com/SonarSource/sonarqube-scan-action.git
synced 2026-04-22 04:57:53 +03:00
Compare commits
2 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| d3bd05bd6e | |||
| a100e88166 |
@@ -433,7 +433,7 @@ jobs:
|
|||||||
with:
|
with:
|
||||||
token: ${{ secrets.GITHUB_TOKEN }}
|
token: ${{ secrets.GITHUB_TOKEN }}
|
||||||
- name: SonarQube Cache
|
- name: SonarQube Cache
|
||||||
uses: actions/cache@27d5ce7f107fe9357f9df03efb73ab90386fccae # v5.0.5
|
uses: actions/cache@668228422ae6a00e4ad889ee87cd7109ec5666a7 # v5.0.4
|
||||||
with:
|
with:
|
||||||
path: ${{ github.workspace }}/.sonar/cache
|
path: ${{ github.workspace }}/.sonar/cache
|
||||||
key: ${{ runner.os }}-${{ runner.arch }}-sonar
|
key: ${{ runner.os }}-${{ runner.arch }}-sonar
|
||||||
|
|||||||
@@ -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