Skip to content

Commit ae9dce5

Browse files
committed
Remove caching of entire directory, instead use setup-node provided caching
1 parent a836aaf commit ae9dce5

File tree

1 file changed

+2
-15
lines changed

1 file changed

+2
-15
lines changed

.github/workflows/test.yml

Lines changed: 2 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,6 @@ concurrency:
1717
group: ${{ github.workflow }}-${{ github.ref }}
1818
cancel-in-progress: ${{ github.ref != 'refs/heads/master' }}
1919

20-
env:
21-
CACHE_KEY: "${{ github.ref }}-${{ github.run_id }}-${{ github.run_attempt }}"
2220

2321
jobs:
2422
configure:
@@ -53,11 +51,6 @@ jobs:
5351
with:
5452
node: ${{ matrix.node }}
5553

56-
- name: Save build artifacts
57-
uses: actions/cache/save@v4
58-
with:
59-
path: .
60-
key: ${{ matrix.node }}-${{ env.CACHE_KEY }}
6154

6255
unit:
6356
needs: [configure, build] # Require build to complete before running tests
@@ -76,11 +69,8 @@ jobs:
7669
node-version: ${{ matrix.node }}
7770
cache: npm
7871

79-
- uses: actions/cache/restore@v4
80-
with:
81-
path: .
82-
key: ${{ matrix.node }}-${{ env.CACHE_KEY }}
8372

73+
- run: npm ci
8474
- run: npm run test:ci
8575

8676
# only upload coverage on one node version
@@ -101,9 +91,6 @@ jobs:
10191
node-version: 18
10292
cache: npm
10393

104-
- uses: actions/cache/restore@v4
105-
with:
106-
path: .
107-
key: 18-${{ env.CACHE_KEY }}
10894

95+
- run: npm ci
10996
- run: npm run lint

0 commit comments

Comments
 (0)