@@ -16,7 +16,7 @@ aliases:
16
16
restore_cache :
17
17
name : Restore node_modules cache
18
18
keys :
19
- - v2-node-{{ arch }}-{{ .Branch }}-{{ checksum "yarn.lock" }}-node-modules
19
+ - v2-node-{{ arch }}-{{ .Branch }}-{{ checksum "yarn.lock" }}-{{ checksum "workspace_info.txt" }}- node-modules
20
20
21
21
- &TEST_PARALLELISM 20
22
22
@@ -29,6 +29,7 @@ aliases:
29
29
steps :
30
30
- checkout
31
31
- attach_workspace : *attach_workspace
32
+ - run : yarn workspaces info | head -n -1 > workspace_info.txt
32
33
- *restore_node_modules
33
34
- run : node ./scripts/rollup/consolidateBundleSizes.js
34
35
- run : ./scripts/circleci/pack_and_store_artifact.sh
51
52
setup :
52
53
docker : *docker
53
54
environment : *environment
54
-
55
55
steps :
56
56
- checkout
57
57
- run :
61
61
- run :
62
62
name : Install Packages
63
63
command : yarn --frozen-lockfile --cache-folder ~/.cache/yarn
64
+ - run : yarn workspaces info | head -n -1 > workspace_info.txt
64
65
- save_cache :
65
66
# Store the yarn cache globally for all lock files with this same
66
67
# checksum. This will speed up the setup job for all PRs where the
75
76
# all jobs run on this branch with the same lockfile.
76
77
name : Save node_modules cache
77
78
# This cache key is per branch, a yarn install in setup is required.
78
- key : v2-node-{{ arch }}-{{ .Branch }}-{{ checksum "yarn.lock" }}-node-modules
79
+ key : v2-node-{{ arch }}-{{ .Branch }}-{{ checksum "yarn.lock" }}-{{ checksum "workspace_info.txt" }}- node-modules
79
80
paths :
80
81
- node_modules
81
82
85
86
86
87
steps :
87
88
- checkout
89
+ - run : yarn workspaces info | head -n -1 > workspace_info.txt
88
90
- *restore_node_modules
89
91
- run : node ./scripts/prettier/index
90
92
- run : node ./scripts/tasks/eslint
98
100
99
101
steps :
100
102
- checkout
103
+ - run : yarn workspaces info | head -n -1 > workspace_info.txt
101
104
- *restore_node_modules
102
105
- run : node ./scripts/tasks/flow-ci
103
106
@@ -108,6 +111,7 @@ jobs:
108
111
109
112
steps :
110
113
- checkout
114
+ - run : yarn workspaces info | head -n -1 > workspace_info.txt
111
115
- *restore_node_modules
112
116
- run : yarn test-stable --ci
113
117
@@ -117,6 +121,7 @@ jobs:
117
121
parallelism : *TEST_PARALLELISM
118
122
steps :
119
123
- checkout
124
+ - run : yarn workspaces info | head -n -1 > workspace_info.txt
120
125
- *restore_node_modules
121
126
- run : yarn test --ci
122
127
@@ -126,6 +131,7 @@ jobs:
126
131
parallelism : *TEST_PARALLELISM
127
132
steps :
128
133
- checkout
134
+ - run : yarn workspaces info | head -n -1 > workspace_info.txt
129
135
- *restore_node_modules
130
136
- run : yarn test-classic --ci
131
137
@@ -135,6 +141,7 @@ jobs:
135
141
parallelism : *TEST_PARALLELISM
136
142
steps :
137
143
- checkout
144
+ - run : yarn workspaces info | head -n -1 > workspace_info.txt
138
145
- *restore_node_modules
139
146
- run : yarn test-classic --variant --ci
140
147
@@ -144,6 +151,7 @@ jobs:
144
151
parallelism : *TEST_PARALLELISM
145
152
steps :
146
153
- checkout
154
+ - run : yarn workspaces info | head -n -1 > workspace_info.txt
147
155
- *restore_node_modules
148
156
- run : yarn test-classic --prod --ci
149
157
@@ -153,6 +161,7 @@ jobs:
153
161
parallelism : *TEST_PARALLELISM
154
162
steps :
155
163
- checkout
164
+ - run : yarn workspaces info | head -n -1 > workspace_info.txt
156
165
- *restore_node_modules
157
166
- run : yarn test-classic --prod --variant --ci
158
167
@@ -162,6 +171,7 @@ jobs:
162
171
parallelism : *TEST_PARALLELISM
163
172
steps :
164
173
- checkout
174
+ - run : yarn workspaces info | head -n -1 > workspace_info.txt
165
175
- *restore_node_modules
166
176
- run : yarn test-www --ci
167
177
@@ -171,6 +181,7 @@ jobs:
171
181
parallelism : *TEST_PARALLELISM
172
182
steps :
173
183
- checkout
184
+ - run : yarn workspaces info | head -n -1 > workspace_info.txt
174
185
- *restore_node_modules
175
186
- run : yarn test-www --variant --ci
176
187
@@ -180,6 +191,7 @@ jobs:
180
191
parallelism : *TEST_PARALLELISM
181
192
steps :
182
193
- checkout
194
+ - run : yarn workspaces info | head -n -1 > workspace_info.txt
183
195
- *restore_node_modules
184
196
- run : yarn test-www --prod --ci
185
197
@@ -189,6 +201,7 @@ jobs:
189
201
parallelism : *TEST_PARALLELISM
190
202
steps :
191
203
- checkout
204
+ - run : yarn workspaces info | head -n -1 > workspace_info.txt
192
205
- *restore_node_modules
193
206
- run : yarn test-www --prod --variant --ci
194
207
@@ -199,6 +212,7 @@ jobs:
199
212
200
213
steps :
201
214
- checkout
215
+ - run : yarn workspaces info | head -n -1 > workspace_info.txt
202
216
- *restore_node_modules
203
217
- run : yarn test-stable --persistent --ci
204
218
@@ -209,6 +223,7 @@ jobs:
209
223
210
224
steps :
211
225
- checkout
226
+ - run : yarn workspaces info | head -n -1 > workspace_info.txt
212
227
- *restore_node_modules
213
228
- run : yarn test-stable --prod --ci
214
229
@@ -218,6 +233,7 @@ jobs:
218
233
parallelism : *TEST_PARALLELISM
219
234
steps :
220
235
- checkout
236
+ - run : yarn workspaces info | head -n -1 > workspace_info.txt
221
237
- *restore_node_modules
222
238
- run : yarn test --prod --ci
223
239
@@ -227,6 +243,7 @@ jobs:
227
243
parallelism : *TEST_PARALLELISM
228
244
steps :
229
245
- checkout
246
+ - run : yarn workspaces info | head -n -1 > workspace_info.txt
230
247
- *restore_node_modules
231
248
- run :
232
249
environment :
@@ -254,6 +271,7 @@ jobs:
254
271
parallelism : 20
255
272
steps :
256
273
- checkout
274
+ - run : yarn workspaces info | head -n -1 > workspace_info.txt
257
275
- *restore_node_modules
258
276
- run :
259
277
environment :
@@ -281,6 +299,7 @@ jobs:
281
299
steps :
282
300
- checkout
283
301
- attach_workspace : *attach_workspace
302
+ - run : yarn workspaces info | head -n -1 > workspace_info.txt
284
303
- *restore_yarn_cache
285
304
- *restore_node_modules
286
305
- run :
@@ -299,6 +318,7 @@ jobs:
299
318
steps :
300
319
- checkout
301
320
- attach_workspace : *attach_workspace
321
+ - run : yarn workspaces info | head -n -1 > workspace_info.txt
302
322
- *restore_yarn_cache
303
323
- *restore_node_modules
304
324
- run :
@@ -326,6 +346,7 @@ jobs:
326
346
- checkout
327
347
- attach_workspace :
328
348
at : packages/react-devtools-scheduling-profiler
349
+ - run : yarn workspaces info | head -n -1 > workspace_info.txt
329
350
- *restore_node_modules
330
351
- run :
331
352
name : Deploy
@@ -344,6 +365,7 @@ jobs:
344
365
steps :
345
366
- checkout
346
367
- attach_workspace : *attach_workspace
368
+ - run : yarn workspaces info | head -n -1 > workspace_info.txt
347
369
- *restore_node_modules
348
370
# This runs in the process_artifacts job, too, but it's faster to run
349
371
# this step in both jobs instead of running the jobs sequentially
@@ -359,6 +381,7 @@ jobs:
359
381
steps :
360
382
- checkout
361
383
- attach_workspace : *attach_workspace
384
+ - run : yarn workspaces info | head -n -1 > workspace_info.txt
362
385
- *restore_node_modules
363
386
# This runs in the process_artifacts job, too, but it's faster to run
364
387
# this step in both jobs instead of running the jobs sequentially
@@ -374,6 +397,7 @@ jobs:
374
397
steps :
375
398
- checkout
376
399
- attach_workspace : *attach_workspace
400
+ - run : yarn workspaces info | head -n -1 > workspace_info.txt
377
401
- *restore_node_modules
378
402
- run : yarn lint-build
379
403
- run : scripts/circleci/check_minified_errors.sh
@@ -384,6 +408,7 @@ jobs:
384
408
steps :
385
409
- checkout
386
410
- attach_workspace : *attach_workspace
411
+ - run : yarn workspaces info | head -n -1 > workspace_info.txt
387
412
- *restore_node_modules
388
413
- run :
389
414
environment :
@@ -398,6 +423,7 @@ jobs:
398
423
steps :
399
424
- checkout
400
425
- attach_workspace : *attach_workspace
426
+ - run : yarn workspaces info | head -n -1 > workspace_info.txt
401
427
- *restore_node_modules
402
428
- run : yarn test-stable --build --ci
403
429
@@ -408,6 +434,7 @@ jobs:
408
434
steps :
409
435
- checkout
410
436
- attach_workspace : *attach_workspace
437
+ - run : yarn workspaces info | head -n -1 > workspace_info.txt
411
438
- *restore_node_modules
412
439
- run : yarn test --build --ci
413
440
@@ -417,6 +444,7 @@ jobs:
417
444
steps :
418
445
- checkout
419
446
- attach_workspace : *attach_workspace
447
+ - run : yarn workspaces info | head -n -1 > workspace_info.txt
420
448
- *restore_node_modules
421
449
- run : yarn test --project=devtools --build --ci
422
450
@@ -426,6 +454,7 @@ jobs:
426
454
steps :
427
455
- checkout
428
456
- attach_workspace : *attach_workspace
457
+ - run : yarn workspaces info | head -n -1 > workspace_info.txt
429
458
- *restore_node_modules
430
459
- run :
431
460
name : Run DOM fixture tests
@@ -442,6 +471,7 @@ jobs:
442
471
environment : *environment
443
472
steps :
444
473
- checkout
474
+ - run : yarn workspaces info | head -n -1 > workspace_info.txt
445
475
- *restore_node_modules
446
476
- run :
447
477
name : Run fuzz tests
@@ -456,6 +486,7 @@ jobs:
456
486
steps :
457
487
- checkout
458
488
- attach_workspace : *attach_workspace
489
+ - run : yarn workspaces info | head -n -1 > workspace_info.txt
459
490
- *restore_node_modules
460
491
- run : yarn test-stable --build --prod --ci
461
492
@@ -466,6 +497,7 @@ jobs:
466
497
steps :
467
498
- checkout
468
499
- attach_workspace : *attach_workspace
500
+ - run : yarn workspaces info | head -n -1 > workspace_info.txt
469
501
- *restore_node_modules
470
502
- run : yarn test --build --prod --ci
471
503
0 commit comments