@@ -16,7 +16,7 @@ parameters:
16
16
default : " next"
17
17
18
18
executors :
19
- sb_node_18_classic :
19
+ sb_node_22_classic :
20
20
parameters :
21
21
class :
22
22
description : The Resource class
@@ -25,7 +25,7 @@ executors:
25
25
default : " small"
26
26
working_directory : /tmp/storybook
27
27
docker :
28
- - image : cimg/node:18.19.1
28
+ - image : cimg/node:22.6.0
29
29
environment :
30
30
NODE_OPTIONS : --max_old_space_size=6144
31
31
resource_class : <<parameters.class>>
@@ -38,7 +38,20 @@ executors:
38
38
default : " small"
39
39
working_directory : /tmp/storybook
40
40
docker :
41
- - image : cimg/node:18.19.1-browsers
41
+ - image : cimg/node:18.20.3-browsers
42
+ environment :
43
+ NODE_OPTIONS : --max_old_space_size=6144
44
+ resource_class : <<parameters.class>>
45
+ sb_node_22_browsers :
46
+ parameters :
47
+ class :
48
+ description : The Resource class
49
+ type : enum
50
+ enum : ["small", "medium", "medium+", "large", "xlarge"]
51
+ default : " small"
52
+ working_directory : /tmp/storybook
53
+ docker :
54
+ - image : cimg/node:22.6.0-browsers
42
55
environment :
43
56
NODE_OPTIONS : --max_old_space_size=6144
44
57
resource_class : <<parameters.class>>
74
87
browser-tools :
circleci/[email protected]
75
88
discord :
antonioned/[email protected]
76
89
codecov :
codecov/[email protected]
77
- bun-orb :
cmgriffing/[email protected]
78
90
79
91
80
92
@@ -109,7 +121,7 @@ jobs:
109
121
pretty-docs :
110
122
executor :
111
123
class : medium
112
- name : sb_node_18_classic
124
+ name : sb_node_22_classic
113
125
steps :
114
126
- git-shallow-clone/checkout_advanced :
115
127
clone_options : " --depth 1 --verbose"
@@ -135,12 +147,10 @@ jobs:
135
147
build :
136
148
executor :
137
149
class : xlarge
138
- name : sb_node_18_classic
150
+ name : sb_node_22_classic
139
151
steps :
140
152
- git-shallow-clone/checkout_advanced :
141
153
clone_options : " --depth 1 --verbose"
142
- - bun-orb/setup :
143
- version : 1.1.1
144
154
- restore_cache :
145
155
name : Restore Yarn cache
146
156
keys :
@@ -182,7 +192,7 @@ jobs:
182
192
lint :
183
193
executor :
184
194
class : large
185
- name : sb_node_18_classic
195
+ name : sb_node_22_classic
186
196
steps :
187
197
- git-shallow-clone/checkout_advanced :
188
198
clone_options : " --depth 1 --verbose"
@@ -198,12 +208,10 @@ jobs:
198
208
check :
199
209
executor :
200
210
class : xlarge
201
- name : sb_node_18_classic
211
+ name : sb_node_22_classic
202
212
steps :
203
213
- git-shallow-clone/checkout_advanced :
204
214
clone_options : " --depth 1 --verbose"
205
- - bun-orb/setup :
206
- version : 1.1.1
207
215
- attach_workspace :
208
216
at : .
209
217
- nx/set-shas :
@@ -218,7 +226,7 @@ jobs:
218
226
- report-workflow-on-failure
219
227
- cancel-workflow-on-failure
220
228
script-checks :
221
- executor : sb_node_18_browsers
229
+ executor : sb_node_22_browsers
222
230
steps :
223
231
- git-shallow-clone/checkout_advanced :
224
232
clone_options : " --depth 1 --verbose"
@@ -238,15 +246,15 @@ jobs:
238
246
name : Run tests
239
247
command : |
240
248
cd scripts
241
- yarn test --coverage
249
+ yarn test --coverage --coverage.all=false
242
250
- store_test_results :
243
251
path : scripts/junit.xml
244
252
- report-workflow-on-failure
245
253
- cancel-workflow-on-failure
246
254
unit-tests :
247
255
executor :
248
256
class : xlarge
249
- name : sb_node_18_browsers
257
+ name : sb_node_22_browsers
250
258
steps :
251
259
- git-shallow-clone/checkout_advanced :
252
260
clone_options : " --depth 1 --verbose"
@@ -256,7 +264,7 @@ jobs:
256
264
name : Test
257
265
command : |
258
266
cd code
259
- yarn test --coverage
267
+ yarn test --coverage --coverage.all=false
260
268
- store_test_results :
261
269
path : code/junit.xml
262
270
- persist_to_workspace :
@@ -268,7 +276,7 @@ jobs:
268
276
coverage :
269
277
executor :
270
278
class : small
271
- name : sb_node_18_browsers
279
+ name : sb_node_22_browsers
272
280
steps :
273
281
- git-shallow-clone/checkout_advanced :
274
282
clone_options : " --depth 1 --verbose"
@@ -279,7 +287,7 @@ jobs:
279
287
chromatic-internal-storybook :
280
288
executor :
281
289
class : medium+
282
- name : sb_node_18_browsers
290
+ name : sb_node_22_browsers
283
291
environment :
284
292
NODE_OPTIONS : --max_old_space_size=6144
285
293
steps :
@@ -301,7 +309,7 @@ jobs:
301
309
type : integer
302
310
executor :
303
311
class : medium
304
- name : sb_node_18_browsers
312
+ name : sb_node_22_browsers
305
313
parallelism : << parameters.parallelism >>
306
314
steps :
307
315
- git-shallow-clone/checkout_advanced :
@@ -348,18 +356,16 @@ jobs:
348
356
type : integer
349
357
executor :
350
358
class : large
351
- name : sb_node_18_browsers
359
+ name : sb_node_22_browsers
352
360
parallelism : << parameters.parallelism >>
353
361
steps :
354
362
- git-shallow-clone/checkout_advanced :
355
363
clone_options : " --depth 1 --verbose"
356
- - bun-orb/setup :
357
- version : 1.1.1
358
364
- attach_workspace :
359
365
at : .
360
366
- run :
361
367
name : Starting Event Collector
362
- command : node --loader esbuild-register/loader -r esbuild-register ./event-log-collector.ts
368
+ command : yarn jiti ./event-log-collector.ts
363
369
working_directory : scripts
364
370
background : true
365
371
- run :
@@ -373,7 +379,7 @@ jobs:
373
379
TEMPLATE=$(yarn get-template --cadence << pipeline.parameters.workflow >> --task build)
374
380
if [[ $TEMPLATE != bench/* ]]
375
381
then
376
- node --loader esbuild-register/loader -r esbuild-register ./event-log-checker.ts build $TEMPLATE
382
+ yarn jiti ./event-log-checker.ts build $TEMPLATE
377
383
fi
378
384
working_directory : scripts
379
385
- report-workflow-on-failure :
@@ -431,7 +437,7 @@ jobs:
431
437
type : integer
432
438
executor :
433
439
class : medium
434
- name : sb_node_18_browsers
440
+ name : sb_node_22_browsers
435
441
parallelism : << parameters.parallelism >>
436
442
steps :
437
443
- checkout
@@ -514,7 +520,7 @@ jobs:
514
520
test-empty-init :
515
521
executor :
516
522
class : medium
517
- name : sb_node_18_browsers
523
+ name : sb_node_22_browsers
518
524
parameters :
519
525
packageManager :
520
526
type : string
@@ -602,6 +608,23 @@ jobs:
602
608
IN_STORYBOOK_SANDBOX : true
603
609
STORYBOOK_INIT_EMPTY_TYPE : << parameters.template >>
604
610
STORYBOOK_DISABLE_TELEMETRY : true
611
+ - when :
612
+ condition :
613
+ equal : ["react-vite-ts", << parameters.template >>]
614
+ steps :
615
+ - run :
616
+ name : Storybook init from empty directory (--skip-install)
617
+ command : |
618
+ cd code
619
+ yarn local-registry --open &
620
+ cd ../../
621
+ mkdir empty-<< parameters.template >>-no-install
622
+ cd empty-<< parameters.template >>-no-install
623
+ npx storybook init --yes --skip-install
624
+ environment :
625
+ IN_STORYBOOK_SANDBOX : true
626
+ STORYBOOK_INIT_EMPTY_TYPE : << parameters.template >>
627
+ STORYBOOK_DISABLE_TELEMETRY : true
605
628
- report-workflow-on-failure
606
629
test-portable-stories :
607
630
parameters :
0 commit comments