Skip to content

Commit 70cf12b

Browse files
authored
Merge pull request #1828 from ddzz/ci-caching
2 parents c695ff4 + b13d46b commit 70cf12b

File tree

1 file changed

+6
-17
lines changed

1 file changed

+6
-17
lines changed

.github/workflows/test.yml

Lines changed: 6 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -13,20 +13,14 @@ jobs:
1313
runs-on: ubuntu-latest
1414

1515
steps:
16-
- name: Set up Node
17-
uses: actions/setup-node@v1
18-
with:
19-
node-version: 14.x
20-
2116
- name: Checkout code
2217
uses: actions/checkout@v2
2318

24-
- name: Cache dependencies
25-
uses: actions/cache@v2
19+
- name: Set up Node
20+
uses: actions/setup-node@v2
2621
with:
27-
path: .yarn/cache
28-
key: yarn-${{ hashFiles('yarn.lock') }}
29-
restore-keys: yarn-
22+
node-version: 14.x
23+
cache: 'yarn'
3024

3125
- name: Install dependencies
3226
run: yarn install
@@ -52,15 +46,10 @@ jobs:
5246
uses: actions/checkout@v2
5347

5448
- name: Use node ${{ matrix.node }}
55-
uses: actions/setup-node@v1
49+
uses: actions/setup-node@v2
5650
with:
5751
node-version: ${{ matrix.node }}
58-
59-
- uses: actions/cache@v2
60-
with:
61-
path: .yarn/cache
62-
key: yarn-${{ hashFiles('yarn.lock') }}
63-
restore-keys: yarn-
52+
cache: 'yarn'
6453

6554
- name: Install deps
6655
run: yarn install

0 commit comments

Comments
 (0)