@@ -13,6 +13,14 @@ parameters:
13
13
description : The name of the workflow to run
14
14
type : string
15
15
default : pipeline
16
+ with-material-ui-6 :
17
+ description : Use material-ui v6 for additional checks and tests
18
+ type : boolean
19
+ default : false
20
+ with-react-version :
21
+ description : The version of react to be used for the additional tests
22
+ type : string
23
+ default : stable
16
24
e2e-base-url :
17
25
description : The base url for running end-to-end test
18
26
type : string
@@ -90,11 +98,10 @@ commands:
90
98
git --no-pager diff HEAD
91
99
92
100
- when :
93
- condition :
94
- equal : [material-ui-v6, << pipeline.parameters.workflow >>]
101
+ condition : << pipeline.parameters.with-material-ui-6 >>
95
102
steps :
96
103
- run :
97
- name : Install @mui/material@next
104
+ name : Install @mui/material v6
98
105
command : pnpm use-material-ui-v6
99
106
100
107
jobs :
@@ -338,50 +345,38 @@ workflows:
338
345
requires :
339
346
- checkout
340
347
341
- react-next :
348
+ additional-tests :
342
349
when :
343
- equal : [react-next, << pipeline.parameters.workflow >>]
344
- # triggers:
345
- # - schedule:
346
- # cron: '0 0 * * *'
347
- # filters:
348
- # branches:
349
- # only:
350
- # - master
350
+ and :
351
+ - equal : [additional, << pipeline.parameters.workflow >>]
352
+ - or :
353
+ - equal : [true, << pipeline.parameters.with-material-ui-6 >>]
354
+ - not :
355
+ equal : ['stable', << pipeline.parameters.with-react-version >>]
351
356
jobs :
352
357
- test_unit :
353
358
<< : *default-context
354
- react-version : next
355
- name : test_unit -react@next
359
+ name : test_unit_additional
360
+ react-version : << pipeline.parameters.with -react-version >>
356
361
- test_browser :
357
362
<< : *default-context
358
- react-version : next
359
- name : test_browser -react@next
363
+ name : test_browser_additional
364
+ react-version : << pipeline.parameters.with -react-version >>
360
365
- test_regressions :
361
366
<< : *default-context
362
- react-version : next
363
- name : test_regressions -react@next
367
+ name : test_regressions_additional
368
+ react-version : << pipeline.parameters.with -react-version >>
364
369
- test_e2e :
365
370
<< : *default-context
366
- react-version : next
367
- name : test_e2e -react@next
371
+ name : test_e2e_additional
372
+ react-version : << pipeline.parameters.with -react-version >>
368
373
369
- material-ui-v6 :
374
+ additional-checks :
370
375
when :
371
- equal : [material-ui-v6, << pipeline.parameters.workflow >>]
376
+ and :
377
+ - equal : [additional, << pipeline.parameters.workflow >>]
378
+ - equal : [true, << pipeline.parameters.with-material-ui-6 >>]
372
379
jobs :
373
- - test_unit :
374
- << : *default-context
375
- name : test_unit-material@next
376
- - test_browser :
377
- << : *default-context
378
- name : test_browser-material@next
379
- - test_regressions :
380
- << : *default-context
381
- name : test_regressions-material@next
382
- - test_e2e :
383
- << : *default-context
384
- name : test_e2e-material@next
385
380
- test_types :
386
381
<< : *default-context
387
- name : test_types-material@next
382
+ name : test_types_additional
0 commit comments