Skip to content
This repository was archived by the owner on Jan 28, 2025. It is now read-only.

Commit a56bab0

Browse files
authored
chore(ci): improve yarn caching (#1958)
1 parent 6425808 commit a56bab0

File tree

2 files changed

+16
-2
lines changed

2 files changed

+16
-2
lines changed

.github/workflows/CI.yml

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,14 @@ jobs:
2828
uses: actions/setup-node@v2
2929
with:
3030
node-version: ${{ matrix.node-version }}
31-
cache: "yarn"
31+
32+
- name: Cache Yarn
33+
uses: actions/cache@v2
34+
with:
35+
path: ${{ github.workspace }}/.yarn
36+
key: ci-v1-${{ matrix.node-version }}-${{ hashFiles('yarn.lock') }}
37+
restore-keys: |
38+
ci-v1-${{ matrix.node-version }}-
3239
3340
- name: Setup yarn
3441
run: yarn install --immutable --inline-builds

.github/workflows/e2e-tests.yml

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -162,7 +162,14 @@ jobs:
162162
uses: actions/setup-node@v2
163163
with:
164164
node-version: ${{ matrix.node-version }}
165-
cache: "yarn"
165+
166+
- name: Cache Yarn
167+
uses: actions/cache@v2
168+
with:
169+
path: ${{ github.workspace }}/.yarn
170+
key: e2e-tests-v1-${{ matrix.os }}-${{ matrix.node-version }}-${{ matrix.app }}-${{ hashFiles('yarn.lock') }}
171+
restore-keys: |
172+
e2e-tests-v1-${{ matrix.os }}-${{ matrix.node-version }}-${{ matrix.app }}-
166173
167174
# - name: "Download build"
168175
# uses: actions/download-artifact@v2

0 commit comments

Comments
 (0)