Skip to content

Commit baf2a83

Browse files
committed
Lets see if node_modules caching works
1 parent 0be545c commit baf2a83

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

.github/workflows/ci.yml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,5 +12,15 @@ jobs:
1212
- uses: actions/setup-node@v1
1313
with:
1414
node-version: 12.x
15+
- name: Get yarn cache directory path
16+
id: yarn-cache-dir
17+
run: echo "::set-output name=dir::$(yarn cache dir)"
18+
19+
- uses: actions/cache@v1
20+
with:
21+
path: ${{ steps.yarn-cache-dir.outputs.dir }}
22+
key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }}
23+
restore-keys: |
24+
${{ runner.os }}-yarn-
1525
- run: yarn
1626
- run: yarn test --coverage

0 commit comments

Comments
 (0)