Skip to content

Commit 7229140

Browse files
committed
fix: Use restore-keys to fall back to latest cached nodes, if there is a miss
1 parent d4b2902 commit 7229140

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

.github/workflows/coder.yaml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,8 @@ jobs:
6161
**/node_modules
6262
.eslintcache
6363
key: js-${{ runner.os }}-test-${{ hashFiles('**/yarn.lock') }}
64+
restore-keys: |
65+
js-${{ runner.os }}-
6466
6567
- name: Install node_modules
6668
run: ./scripts/yarn_install.sh
@@ -108,6 +110,8 @@ jobs:
108110
**/node_modules
109111
.eslintcache
110112
key: js-${{ runner.os }}-test-${{ hashFiles('**/yarn.lock') }}
113+
restore-keys: |
114+
js-${{ runner.os }}-
111115
112116
- name: Install node_modules
113117
run: ./scripts/yarn_install.sh
@@ -250,6 +254,8 @@ jobs:
250254
**/node_modules
251255
.eslintcache
252256
key: js-${{ runner.os }}-test-${{ hashFiles('**/yarn.lock') }}
257+
restore-keys: |
258+
js-${{ runner.os }}-
253259
254260
# Go is required for uploading the test results to datadog
255261
- uses: actions/setup-go@v2
@@ -312,6 +318,8 @@ jobs:
312318
**/node_modules
313319
.eslintcache
314320
key: js-${{ runner.os }}-test-${{ hashFiles('**/yarn.lock') }}
321+
restore-keys: |
322+
js-${{ runner.os }}-
315323
316324
# Go is required for uploading the test results to datadog
317325
- uses: actions/setup-go@v2

0 commit comments

Comments
 (0)