Compare commits

..

2 Commits

Author SHA1 Message Date
antoine.vinot d3bd05bd6e Check only dist folder 2026-04-21 17:12:48 +02:00
Jarek Potiuk a100e88166 Add build and dist/ freshness check to CI 2026-04-21 16:17:20 +02:00
2 changed files with 12 additions and 1 deletions
+1 -1
View File
@@ -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
+11
View File
@@ -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