ci: Clear Jest cache before running tests

This commit is contained in:
courtmanr@gmail.com
2025-04-30 17:08:00 +01:00
parent ae8181ff8d
commit ed4bcdfc49
2 changed files with 15 additions and 2 deletions
+13 -1
View File
@@ -38,4 +38,16 @@ jobs:
# PBS_HOST: ${{ secrets.PBS_HOST }}
# PBS_TOKEN_ID: ${{ secrets.PBS_TOKEN_ID }}
# PBS_TOKEN_SECRET: ${{ secrets.PBS_TOKEN_SECRET }}
run: npm test
run: npm test
- name: Run tests with cache clearing # Changed step name for clarity
env: # Add environment variables from GitHub secrets
PROXMOX_HOST: ${{ secrets.PROXMOX_HOST }}
PROXMOX_TOKEN_ID: ${{ secrets.PROXMOX_TOKEN_ID }}
PROXMOX_TOKEN_SECRET: ${{ secrets.PROXMOX_TOKEN_SECRET }}
# Add other required primary variables here if needed, e.g.:
# PBS_HOST: ${{ secrets.PBS_HOST }}
# PBS_TOKEN_ID: ${{ secrets.PBS_TOKEN_ID }}
# PBS_TOKEN_SECRET: ${{ secrets.PBS_TOKEN_SECRET }}
# Clear Jest cache first, then run tests
run: npm test -- --clearCache && npm test
+2 -1
View File
@@ -39,7 +39,8 @@ jobs:
# --- End Debug Steps ---
- name: Run tests
run: npm test # Important: Ensure tests pass before releasing
# Clear Jest cache first, then run tests
run: npm test -- --clearCache && npm test # Important: Ensure tests pass before releasing
# --- Add Docker Steps ---
- name: Set up QEMU