Skip to content

Commit 82e7b6f

Browse files
committed
Always clear jest cache (actions)
1 parent a87b513 commit 82e7b6f

2 files changed

Lines changed: 8 additions & 3 deletions

File tree

.github/workflows/node.js.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -85,11 +85,14 @@ jobs:
8585
# for headfull chrome
8686
- name: Install xvfb
8787
run: sudo apt-get install xvfb
88+
- name: Clear jest cache
89+
run: npx jest --clear-cache
8890
- name: Run all tests
8991
if: ${{ github.event_name != 'schedule' }} # don't wrap on schedule
9092
uses: mattallty/jest-github-action@v1
9193
with:
9294
test-command: xvfb-run --auto-servernum npm run test -- --ci
95+
coverage-comment: false
9396
env:
9497
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
9598
YT_API_KEY: ${{ secrets.YOUTUBE_KEY }}
@@ -144,6 +147,8 @@ jobs:
144147
version: 6.0.2
145148
run_install: true
146149

150+
- name: Clear jest cache
151+
run: npx jest --clear-cache
147152
- name: Generate coverage
148153
run: npm run coverage
149154
env:

package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,9 @@
44
"private": true,
55
"description": "Enhancer for Nebula. Adds some quality of life features to the nebula player.",
66
"scripts": {
7-
"test": "jest --runInBand --no-cache",
8-
"test:unit": "jest --selectProjects unit --no-cache",
9-
"test:ee": "jest --selectProjects integration --runInBand --no-cache",
7+
"test": "jest --runInBand",
8+
"test:unit": "jest --selectProjects unit",
9+
"test:ee": "jest --selectProjects integration --runInBand",
1010
"test:watch": "jest --watch --notify",
1111
"coverage": "jest --selectProjects unit --coverage",
1212
"prebuild": "npm run clean && npm run build:all",

0 commit comments

Comments
 (0)