Skip to content

Commit 9cd37f9

Browse files
committed
restore yarn-package cache
1 parent 167e548 commit 9cd37f9

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

.github/workflows/job.test.yml

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -264,12 +264,25 @@ jobs:
264264
run: conda list
265265

266266
- name: Cache node_modules
267+
id: cache-node-modules
267268
uses: actions/cache@v2
268269
with:
269270
path: '**/node_modules'
270271
key: |
271272
${{ env.CACHE_EPOCH }}-${{ runner.os }}-node-atest-${{ hashFiles('yarn.lock') }}
272273
274+
- name: Cache yarn packages
275+
id: cache-yarn-packages
276+
if: steps.cache-node-modules.outputs.cache-hit != 'true'
277+
uses: actions/cache@v2
278+
with:
279+
path: .yarn-packages
280+
key: |
281+
${{ env.CACHE_EPOCH }}-yarn-${{ runner.os }}-${{ hashFiles('yarn.lock') }}
282+
restore-keys: |
283+
${{ env.CACHE_EPOCH }}-yarn-${{ runner.os }}-
284+
${{ env.CACHE_EPOCH }}-yarn-
285+
273286
- uses: actions/cache@v2
274287
with:
275288
path: ~/.julia/artifacts

0 commit comments

Comments
 (0)