17
17
SEGMENT_DOWNLOAD_TIMEOUT_MINS : 1
18
18
19
19
jobs :
20
- # ----- YARN CACHE -----
21
- # Centralize the yarn/ node_modules cache so it is saved once and each subsequent job only needs to
20
+ # ----- NODE_MODULES CACHE -----
21
+ # Centralize the node_modules cache so it is saved once and each subsequent job only needs to
22
22
# restore the cache. Prevents race conditions where multiple workflows try to write to the cache.
23
- runtime_yarn_cache :
24
- name : Cache Runtime
23
+ runtime_node_modules_cache :
24
+ name : Cache Runtime node_modules
25
25
runs-on : ubuntu-latest
26
26
steps :
27
27
- uses : actions/checkout@v4
51
51
**/node_modules
52
52
key : runtime-node_modules-v6-${{ runner.arch }}-${{ runner.os }}-${{ hashFiles('yarn.lock') }}
53
53
54
- runtime_compiler_yarn_cache :
55
- name : Cache Runtime, Compiler
54
+ runtime_compiler_node_modules_cache :
55
+ name : Cache Runtime, Compiler node_modules
56
56
runs-on : ubuntu-latest
57
57
steps :
58
58
- uses : actions/checkout@v4
@@ -105,7 +105,7 @@ jobs:
105
105
106
106
flow :
107
107
name : Flow check ${{ matrix.flow_inline_config_shortname }}
108
- needs : [discover_flow_inline_configs, runtime_yarn_cache ]
108
+ needs : [discover_flow_inline_configs, runtime_node_modules_cache ]
109
109
runs-on : ubuntu-latest
110
110
strategy :
111
111
fail-fast : false
@@ -136,7 +136,7 @@ jobs:
136
136
# ----- FIZZ -----
137
137
check_generated_fizz_runtime :
138
138
name : Confirm generated inline Fizz runtime is up to date
139
- needs : [runtime_yarn_cache ]
139
+ needs : [runtime_node_modules_cache ]
140
140
runs-on : ubuntu-latest
141
141
steps :
142
142
- uses : actions/checkout@v4
@@ -165,7 +165,7 @@ jobs:
165
165
# ----- FEATURE FLAGS -----
166
166
flags :
167
167
name : Check flags
168
- needs : [runtime_yarn_cache ]
168
+ needs : [runtime_node_modules_cache ]
169
169
runs-on : ubuntu-latest
170
170
steps :
171
171
- uses : actions/checkout@v4
@@ -192,7 +192,7 @@ jobs:
192
192
# ----- TESTS -----
193
193
test :
194
194
name : yarn test ${{ matrix.params }} (Shard ${{ matrix.shard }})
195
- needs : [runtime_compiler_yarn_cache ]
195
+ needs : [runtime_compiler_node_modules_cache ]
196
196
runs-on : ubuntu-latest
197
197
strategy :
198
198
fail-fast : false
@@ -252,13 +252,13 @@ jobs:
252
252
# ----- BUILD -----
253
253
build_and_lint :
254
254
name : yarn build and lint
255
- needs : [runtime_compiler_yarn_cache ]
255
+ needs : [runtime_compiler_node_modules_cache ]
256
256
runs-on : ubuntu-latest
257
257
strategy :
258
258
fail-fast : false
259
259
matrix :
260
260
# yml is dumb. update the --total arg to yarn build if you change the number of workers
261
- worker_id : [0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19]
261
+ worker_id : [0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24 ]
262
262
release_channel : [stable, experimental]
263
263
steps :
264
264
- uses : actions/checkout@v4
@@ -288,7 +288,7 @@ jobs:
288
288
if : steps.node_modules.outputs.cache-hit != 'true'
289
289
- run : yarn --cwd compiler install --frozen-lockfile
290
290
if : steps.node_modules.outputs.cache-hit != 'true'
291
- - run : yarn build --index=${{ matrix.worker_id }} --total=20 --r=${{ matrix.release_channel }} --ci
291
+ - run : yarn build --index=${{ matrix.worker_id }} --total=25 --r=${{ matrix.release_channel }} --ci
292
292
env :
293
293
CI : github
294
294
RELEASE_CHANNEL : ${{ matrix.release_channel }}
@@ -305,7 +305,7 @@ jobs:
305
305
306
306
test_build :
307
307
name : yarn test-build
308
- needs : [build_and_lint, runtime_compiler_yarn_cache ]
308
+ needs : [build_and_lint, runtime_compiler_node_modules_cache ]
309
309
strategy :
310
310
fail-fast : false
311
311
matrix :
@@ -380,7 +380,7 @@ jobs:
380
380
381
381
process_artifacts_combined :
382
382
name : Process artifacts combined
383
- needs : [build_and_lint, runtime_yarn_cache ]
383
+ needs : [build_and_lint, runtime_node_modules_cache ]
384
384
runs-on : ubuntu-latest
385
385
steps :
386
386
- uses : actions/checkout@v4
@@ -429,7 +429,7 @@ jobs:
429
429
430
430
check_error_codes :
431
431
name : Search build artifacts for unminified errors
432
- needs : [build_and_lint, runtime_yarn_cache ]
432
+ needs : [build_and_lint, runtime_node_modules_cache ]
433
433
runs-on : ubuntu-latest
434
434
steps :
435
435
- uses : actions/checkout@v4
@@ -466,7 +466,7 @@ jobs:
466
466
467
467
check_release_dependencies :
468
468
name : Check release dependencies
469
- needs : [build_and_lint, runtime_yarn_cache ]
469
+ needs : [build_and_lint, runtime_node_modules_cache ]
470
470
runs-on : ubuntu-latest
471
471
steps :
472
472
- uses : actions/checkout@v4
@@ -604,7 +604,7 @@ jobs:
604
604
# ----- DEVTOOLS -----
605
605
build_devtools_and_process_artifacts :
606
606
name : Build DevTools and process artifacts
607
- needs : [build_and_lint, runtime_yarn_cache ]
607
+ needs : [build_and_lint, runtime_node_modules_cache ]
608
608
runs-on : ubuntu-latest
609
609
strategy :
610
610
fail-fast : false
@@ -661,7 +661,7 @@ jobs:
661
661
662
662
run_devtools_e2e_tests :
663
663
name : Run DevTools e2e tests
664
- needs : [build_and_lint, runtime_yarn_cache ]
664
+ needs : [build_and_lint, runtime_node_modules_cache ]
665
665
runs-on : ubuntu-latest
666
666
steps :
667
667
- uses : actions/checkout@v4
@@ -700,7 +700,7 @@ jobs:
700
700
sizebot :
701
701
if : ${{ github.event_name == 'pull_request' && github.ref_name != 'main' && github.event.pull_request.base.ref == 'main' }}
702
702
name : Run sizebot
703
- needs : [build_and_lint, runtime_yarn_cache ]
703
+ needs : [build_and_lint, runtime_node_modules_cache ]
704
704
runs-on : ubuntu-latest
705
705
steps :
706
706
- uses : actions/checkout@v4
0 commit comments