File tree 1 file changed +20
-2
lines changed
1 file changed +20
-2
lines changed Original file line number Diff line number Diff line change @@ -262,8 +262,17 @@ jobs:
262
262
- name : Build standalone release
263
263
run : source scl_source enable devtoolset-9 && yarn release:standalone
264
264
265
- # TODO@jsjoeio - can we use cache here?
265
+ - name : Fetch dependencies from cache
266
+ id : cache-node-modules
267
+ uses : actions/cache@v3
268
+ with :
269
+ path : " **/node_modules"
270
+ key : yarn-build-${{ hashFiles('**/yarn.lock') }}
271
+ restore-keys : |
272
+ yarn-build-
273
+
266
274
- name : Install test dependencies
275
+ if : steps.cache-node-modules.outputs.cache-hit != 'true'
267
276
run : SKIP_SUBMODULE_DEPS=1 yarn --frozen-lockfile
268
277
269
278
- name : Run integration tests on standalone release
@@ -395,8 +404,17 @@ jobs:
395
404
- name : Build standalone release
396
405
run : yarn release:standalone
397
406
398
- # TODO@jsjoeio - can we cache here?
407
+ - name : Fetch dependencies from cache
408
+ id : cache-node-modules
409
+ uses : actions/cache@v3
410
+ with :
411
+ path : " **/node_modules"
412
+ key : yarn-build-${{ hashFiles('**/yarn.lock') }}
413
+ restore-keys : |
414
+ yarn-build-
415
+
399
416
- name : Install test dependencies
417
+ if : steps.cache-node-modules.outputs.cache-hit != 'true'
400
418
run : SKIP_SUBMODULE_DEPS=1 yarn install
401
419
402
420
- name : Run integration tests on standalone release
You can’t perform that action at this time.
0 commit comments