Skip to content

Commit 64be5f5

Browse files
ci: cache deps
1 parent 0358dec commit 64be5f5

File tree

1 file changed

+10
-1
lines changed

1 file changed

+10
-1
lines changed

Diff for: .github/workflows/test.yml

+10-1
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,16 @@ jobs:
2121
uses: actions/setup-node@v1
2222
with:
2323
node-version: ${{ matrix.node }}
24+
- name: Cache dependencies
25+
id: cache
26+
uses: actions/cache@v2
27+
with:
28+
path: |
29+
node_modules
30+
*/*/node_modules
31+
key: ${{ runner.os }}-${{ hashFiles('**/yarn.lock', './yarn.lock') }}
2432
- name: Install packages
25-
run: yarn --no-progress --non-interactive --no-lockfile
33+
if: steps.cache.outputs.cache-hit != 'true'
34+
run: yarn --frozen-lockfile --prefer-offline
2635
- name: Run integration tests
2736
run: yarn test:integration

0 commit comments

Comments
 (0)