Skip to content

Commit a7fcbf7

Browse files
authored
Merge pull request #321 from nschonni/setup-node-cache
ci: use setup-node cache for Yarn
2 parents 87ab9a9 + 596a3fc commit a7fcbf7

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

.github/workflows/test.yml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,10 @@ jobs:
1212
steps:
1313
- uses: actions/checkout@v2
1414
- name: Use Node.js
15-
uses: actions/setup-node@v1
15+
uses: actions/setup-node@v2
1616
with:
1717
node-version: 14.x
18+
cache: yarn
1819
- run: yarn --frozen-lockfile
1920
- run: yarn lint
2021
test:
@@ -27,9 +28,10 @@ jobs:
2728
steps:
2829
- uses: actions/checkout@v2
2930
- name: Use Node.js ${{ matrix.node-version }}
30-
uses: actions/setup-node@v1
31+
uses: actions/setup-node@v2
3132
with:
3233
node-version: ${{ matrix.node-version }}
34+
cache: yarn
3335
- run: yarn --frozen-lockfile
3436
- run: yarn cover:ci
3537
- if: ${{ matrix.os != 'windows-latest' }}

0 commit comments

Comments
 (0)