diff --git a/.github/workflows/node-ci.yml b/.github/workflows/node-ci.yml index 2f99f91d1..078937d18 100644 --- a/.github/workflows/node-ci.yml +++ b/.github/workflows/node-ci.yml @@ -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 \ No newline at end of file + 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 \ No newline at end of file diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 1db8e884e..ddc2020b0 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -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