@@ -13,6 +13,14 @@ parameters:
1313 description : The name of the workflow to run
1414 type : string
1515 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
1624 e2e-base-url :
1725 description : The base url for running end-to-end test
1826 type : string
@@ -90,11 +98,10 @@ commands:
9098 git --no-pager diff HEAD
9199
92100 - when :
93- condition :
94- equal : [material-ui-v6, << pipeline.parameters.workflow >>]
101+ condition : << pipeline.parameters.with-material-ui-6 >>
95102 steps :
96103 - run :
97- name : Install @mui/material@next
104+ name : Install @mui/material v6
98105 command : pnpm use-material-ui-v6
99106
100107jobs :
@@ -349,50 +356,38 @@ workflows:
349356 requires :
350357 - checkout
351358
352- react-next :
359+ additional-tests :
353360 when :
354- equal : [react-next, << pipeline.parameters.workflow >>]
355- # triggers:
356- # - schedule:
357- # cron: '0 0 * * *'
358- # filters:
359- # branches:
360- # only:
361- # - master
361+ and :
362+ - equal : [additional, << pipeline.parameters.workflow >>]
363+ - or :
364+ - equal : [true, << pipeline.parameters.with-material-ui-6 >>]
365+ - not :
366+ equal : ['stable', << pipeline.parameters.with-react-version >>]
362367 jobs :
363368 - test_unit :
364369 << : *default-context
365- react-version : next
366- name : test_unit -react@next
370+ name : test_unit_additional
371+ react-version : << pipeline.parameters.with -react-version >>
367372 - test_browser :
368373 << : *default-context
369- react-version : next
370- name : test_browser -react@next
374+ name : test_browser_additional
375+ react-version : << pipeline.parameters.with -react-version >>
371376 - test_regressions :
372377 << : *default-context
373- react-version : next
374- name : test_regressions -react@next
378+ name : test_regressions_additional
379+ react-version : << pipeline.parameters.with -react-version >>
375380 - test_e2e :
376381 << : *default-context
377- react-version : next
378- name : test_e2e -react@next
382+ name : test_e2e_additional
383+ react-version : << pipeline.parameters.with -react-version >>
379384
380- material-ui-v6 :
385+ additional-checks :
381386 when :
382- equal : [material-ui-v6, << pipeline.parameters.workflow >>]
387+ and :
388+ - equal : [additional, << pipeline.parameters.workflow >>]
389+ - equal : [true, << pipeline.parameters.with-material-ui-6 >>]
383390 jobs :
384- - test_unit :
385- << : *default-context
386- name : test_unit-material@next
387- - test_browser :
388- << : *default-context
389- name : test_browser-material@next
390- - test_regressions :
391- << : *default-context
392- name : test_regressions-material@next
393- - test_e2e :
394- << : *default-context
395- name : test_e2e-material@next
396391 - test_types :
397392 << : *default-context
398- name : test_types-material@next
393+ name : test_types_additional
0 commit comments