@@ -18,7 +18,7 @@ concurrency:
18
18
# Note: if: success() is used in several jobs -
19
19
# this ensures that it only executes if all previous jobs succeeded.
20
20
21
- # if: steps.cache-yarn .outputs.cache-hit != 'true'
21
+ # if: steps.cache-node-modules .outputs.cache-hit != 'true'
22
22
# will skip running `yarn install` if it successfully fetched from cache
23
23
24
24
jobs :
29
29
steps :
30
30
- name : Checkout repo
31
31
uses : actions/checkout@v3
32
- with :
33
- fetch-depth : 0
34
- submodules : true
35
32
36
33
- name : Install Node.js v16
37
34
uses : actions/setup-node@v3
40
37
41
38
- name : Install helm
42
39
40
+ with :
41
+ token : ${{ secrets.GITHUB_TOKEN }}
42
+
43
+ - name : Install helm kubeval plugin
44
+ run : helm plugin install https://github.com/instrumenta/helm-kubeval
43
45
44
46
- name : Fetch dependencies from cache
45
- id : cache-yarn
47
+ id : cache-node-modules
46
48
uses : actions/cache@v3
47
49
with :
48
50
path : " **/node_modules"
51
53
yarn-build-
52
54
53
55
- name : Install dependencies
54
- if : steps.cache-yarn .outputs.cache-hit != 'true'
55
- run : yarn --frozen-lockfile
56
+ if : steps.cache-node-modules .outputs.cache-hit != 'true'
57
+ run : SKIP_SUBMODULE_DEPS=1 yarn --frozen-lockfile
56
58
57
59
- name : Run yarn fmt
58
60
run : yarn fmt
@@ -73,11 +75,13 @@ jobs:
73
75
- name : Checkout repo
74
76
uses : actions/checkout@v3
75
77
with :
76
- fetch-depth : 0
77
78
submodules : true
78
79
79
80
- name : Install quilt
80
- run : sudo apt update && sudo apt install quilt
81
+ uses : awalsh128/cache-apt-pkgs-action@latest
82
+ with :
83
+ packages : quilt
84
+ version : 1.0
81
85
82
86
- name : Patch Code
83
87
run : quilt push -a
88
92
node-version : " 16"
89
93
90
94
- name : Fetch dependencies from cache
91
- id : cache-yarn
95
+ id : cache-node-modules
92
96
uses : actions/cache@v3
93
97
with :
94
98
path : " **/node_modules"
97
101
yarn-build-
98
102
99
103
- name : Install dependencies
100
- if : steps.cache-yarn .outputs.cache-hit != 'true'
104
+ if : steps.cache-node-modules .outputs.cache-hit != 'true'
101
105
run : yarn --frozen-lockfile
102
106
103
107
- name : Build code-server
@@ -171,8 +175,6 @@ jobs:
171
175
steps :
172
176
- name : Checkout repo
173
177
uses : actions/checkout@v3
174
- with :
175
- fetch-depth : 0
176
178
177
179
- name : Download artifact
178
180
uses : actions/download-artifact@v3
@@ -224,8 +226,6 @@ jobs:
224
226
steps :
225
227
- name : Checkout repo
226
228
uses : actions/checkout@v3
227
- with :
228
- fetch-depth : 0
229
229
230
230
- name : Install Node.js v16
231
231
uses : actions/setup-node@v3
@@ -262,8 +262,18 @@ jobs:
262
262
- name : Build standalone release
263
263
run : source scl_source enable devtoolset-9 && yarn release:standalone
264
264
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
+
265
274
- name : Install test dependencies
266
- run : SKIP_SUBMODULE_DEPS=1 yarn install
275
+ if : steps.cache-node-modules.outputs.cache-hit != 'true'
276
+ run : SKIP_SUBMODULE_DEPS=1 yarn --frozen-lockfile
267
277
268
278
- name : Run integration tests on standalone release
269
279
run : yarn test:integration
@@ -320,8 +330,6 @@ jobs:
320
330
steps :
321
331
- name : Checkout repo
322
332
uses : actions/checkout@v3
323
- with :
324
- fetch-depth : 0
325
333
326
334
- name : Install Node.js v16
327
335
uses : actions/setup-node@v3
@@ -373,8 +381,6 @@ jobs:
373
381
steps :
374
382
- name : Checkout repo
375
383
uses : actions/checkout@v3
376
- with :
377
- fetch-depth : 0
378
384
379
385
- name : Install Node.js v16
380
386
uses : actions/setup-node@v3
@@ -398,7 +404,17 @@ jobs:
398
404
- name : Build standalone release
399
405
run : yarn release:standalone
400
406
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
+
401
416
- name : Install test dependencies
417
+ if : steps.cache-node-modules.outputs.cache-hit != 'true'
402
418
run : SKIP_SUBMODULE_DEPS=1 yarn install
403
419
404
420
- name : Run integration tests on standalone release
@@ -425,16 +441,14 @@ jobs:
425
441
steps :
426
442
- name : Checkout repo
427
443
uses : actions/checkout@v3
428
- with :
429
- fetch-depth : 0
430
444
431
445
- name : Install Node.js v16
432
446
uses : actions/setup-node@v3
433
447
with :
434
448
node-version : " 16"
435
449
436
450
- name : Fetch dependencies from cache
437
- id : cache-yarn
451
+ id : cache-node-modules
438
452
uses : actions/cache@v3
439
453
with :
440
454
path : " **/node_modules"
@@ -455,7 +469,7 @@ jobs:
455
469
mv code-server*-linux-amd64 code-server-linux-amd64
456
470
457
471
- name : Install dependencies
458
- if : steps.cache-yarn .outputs.cache-hit != 'true'
472
+ if : steps.cache-node-modules .outputs.cache-hit != 'true'
459
473
run : SKIP_SUBMODULE_DEPS=1 yarn --frozen-lockfile
460
474
461
475
- name : Install Playwright OS dependencies
@@ -488,16 +502,14 @@ jobs:
488
502
steps :
489
503
- name : Checkout repo
490
504
uses : actions/checkout@v3
491
- with :
492
- fetch-depth : 0
493
505
494
506
- name : Install Node.js v16
495
507
uses : actions/setup-node@v3
496
508
with :
497
509
node-version : " 16"
498
510
499
511
- name : Fetch dependencies from cache
500
- id : cache-yarn
512
+ id : cache-node-modules
501
513
uses : actions/cache@v3
502
514
with :
503
515
path : " **/node_modules"
@@ -518,7 +530,7 @@ jobs:
518
530
mv code-server*-linux-amd64 code-server-linux-amd64
519
531
520
532
- name : Install dependencies
521
- if : steps.cache-yarn .outputs.cache-hit != 'true'
533
+ if : steps.cache-node-modules .outputs.cache-hit != 'true'
522
534
run : SKIP_SUBMODULE_DEPS=1 yarn --frozen-lockfile
523
535
524
536
- name : Install Playwright OS dependencies
0 commit comments