@@ -60,13 +60,12 @@ default-context: &default-context
60
60
# key: v1-repo-{{ .Branch }}-{{ .Revision }}
61
61
62
62
commands :
63
- install_js :
63
+ setup_corepack :
64
64
parameters :
65
65
browsers :
66
66
type : boolean
67
67
default : false
68
68
description : ' Set to true if you intend to any browser (for example with playwright).'
69
-
70
69
steps :
71
70
- when :
72
71
condition : << parameters.browsers >>
@@ -89,6 +88,17 @@ commands:
89
88
node --version
90
89
pnpm --version
91
90
91
+ install_js :
92
+ parameters :
93
+ browsers :
94
+ type : boolean
95
+ default : false
96
+ description : ' Set to true if you intend to any browser (for example with playwright).'
97
+
98
+ steps :
99
+ - setup_corepack :
100
+ browsers : << parameters.browsers >>
101
+
92
102
- run :
93
103
name : Resolve React version
94
104
command : |
@@ -472,192 +482,174 @@ jobs:
472
482
- run :
473
483
name : Build packages for fixtures
474
484
command : pnpm lerna run --scope "@mui/*" build
485
+ - run :
486
+ name : Pack packages
487
+ command : pnpm release:pack
475
488
- persist_to_workspace :
476
- root : packages
489
+ root : packed
477
490
paths :
478
- - ' */build '
491
+ - ' *'
479
492
480
- test_bundling_node-esm :
493
+ test_bundling_node_cjs :
481
494
<< : *default-job
482
- working_directory : /tmp/material-ui/test/bundling/fixtures/node-esm /
495
+ working_directory : /tmp/material-ui/test/bundling/fixtures/node-cjs /
483
496
steps :
484
497
- checkout :
485
498
path : /tmp/material-ui
486
499
- attach_workspace :
487
- at : /tmp/material-ui/packages
500
+ at : /tmp/material-ui/packed
501
+ - setup_corepack
488
502
- run :
489
- name : Prepare fixture
490
- command : |
491
- node ../../scripts/createFixture node-esm
503
+ name : Install dependencies
504
+ command : pnpm install --ignore-workspace
505
+ - run :
506
+ name : Test fixture
507
+ command : pnpm start
508
+ test_bundling_node_esm :
509
+ << : *default-job
510
+ working_directory : /tmp/material-ui/test/bundling/fixtures/node-esm/
511
+ steps :
512
+ - checkout :
513
+ path : /tmp/material-ui
514
+ - attach_workspace :
515
+ at : /tmp/material-ui/packed
516
+ - setup_corepack
492
517
- run :
493
518
name : Install dependencies
494
- command : |
495
- pnpm
496
- node ../../scripts/useBuildFromSource.js .
519
+ command : pnpm install --ignore-workspace
497
520
- run :
498
521
name : Test fixture
499
- command : |
500
- # TODO: Known failure
501
- set +e
502
- pnpm start
503
- exit 0
504
- test_bundling_next-webpack4 :
522
+ # TODO: Known failure
523
+ command : pnpm start
524
+ test_bundling_next_webpack4 :
505
525
<< : *default-job
506
- working_directory : /tmp/material-ui/test/bundling/fixtures/next-webpack4/
507
526
docker :
508
527
- image : mcr.microsoft.com/playwright:v1.47.2-focal
528
+ working_directory : /tmp/material-ui/test/bundling/fixtures/next-webpack4/
509
529
steps :
510
530
- checkout :
511
531
path : /tmp/material-ui
512
532
- attach_workspace :
513
- at : /tmp/material-ui/packages
514
- - run :
515
- name : Prepare fixture
516
- command : |
517
- node ../../scripts/createFixture next-webpack4
533
+ at : /tmp/material-ui/packed
534
+ - setup_corepack :
535
+ browsers : true
518
536
- run :
519
537
name : Install dependencies
520
- command : |
521
- pnpm
522
- node ../../scripts/useBuildFromSource.js .
538
+ command : pnpm install --ignore-workspace
523
539
- run :
524
540
name : Test fixture
525
541
command : pnpm start
526
- test_bundling_next-webpack5 :
542
+ test_bundling_next_webpack5 :
527
543
<< : *default-job
528
- working_directory : /tmp/material-ui/test/bundling/fixtures/next-webpack5/
529
544
docker :
530
545
- image : mcr.microsoft.com/playwright:v1.47.2-focal
546
+ working_directory : /tmp/material-ui/test/bundling/fixtures/next-webpack5/
531
547
steps :
532
548
- checkout :
533
549
path : /tmp/material-ui
534
550
- attach_workspace :
535
- at : /tmp/material-ui/packages
536
- - run :
537
- name : Prepare fixture
538
- command : |
539
- node ../../scripts/createFixture next-webpack5
551
+ at : /tmp/material-ui/packed
552
+ - setup_corepack :
553
+ browsers : true
540
554
- run :
541
555
name : Install dependencies
542
- command : |
543
- pnpm
544
- node ../../scripts/useBuildFromSource.js .
556
+ command : pnpm install --ignore-workspace
545
557
- run :
546
558
name : Test fixture
547
559
command : pnpm start
548
- test_bundling_create-react-app :
560
+ test_bundling_create_react_app :
549
561
<< : *default-job
550
- working_directory : /tmp/material-ui/test/bundling/fixtures/create-react-app/
551
562
docker :
552
563
- image : mcr.microsoft.com/playwright:v1.47.2-focal
564
+ working_directory : /tmp/material-ui/test/bundling/fixtures/create-react-app/
553
565
steps :
554
566
- checkout :
555
567
path : /tmp/material-ui
556
568
- attach_workspace :
557
- at : /tmp/material-ui/packages
558
- - run :
559
- name : Prepare fixture
560
- command : |
561
- node ../../scripts/createFixture create-react-app
569
+ at : /tmp/material-ui/packed
570
+ - setup_corepack :
571
+ browsers : true
562
572
- run :
563
573
name : Install dependencies
564
- command : |
565
- pnpm
566
- node ../../scripts/useBuildFromSource.js .
574
+ command : pnpm install --ignore-workspace
567
575
- run :
568
576
name : Test fixture
569
577
command : pnpm start
570
578
test_bundling_snowpack :
571
579
<< : *default-job
572
- working_directory : /tmp/material-ui/test/bundling/fixtures/snowpack/
573
580
docker :
574
581
- image : mcr.microsoft.com/playwright:v1.47.2-focal
582
+ working_directory : /tmp/material-ui/test/bundling/fixtures/snowpack/
575
583
steps :
576
584
- checkout :
577
585
path : /tmp/material-ui
578
586
- attach_workspace :
579
- at : /tmp/material-ui/packages
580
- - run :
581
- name : Prepare fixture
582
- command : |
583
- node ../../scripts/createFixture snowpack
587
+ at : /tmp/material-ui/packed
588
+ - setup_corepack :
589
+ browsers : true
584
590
- run :
585
591
name : Install dependencies
586
- command : |
587
- pnpm
588
- node ../../scripts/useBuildFromSource.js .
592
+ command : pnpm install --ignore-workspace
589
593
- run :
590
594
name : Test fixture
591
595
command : pnpm start
592
596
test_bundling_vite :
593
597
<< : *default-job
594
- working_directory : /tmp/material-ui/test/bundling/fixtures/vite/
595
598
docker :
596
599
- image : mcr.microsoft.com/playwright:v1.47.2-focal
600
+ working_directory : /tmp/material-ui/test/bundling/fixtures/vite/
597
601
steps :
598
602
- checkout :
599
603
path : /tmp/material-ui
600
604
- attach_workspace :
601
- at : /tmp/material-ui/packages
602
- - run :
603
- name : Prepare fixture
604
- command : |
605
- node ../../scripts/createFixture vite
605
+ at : /tmp/material-ui/packed
606
+ - setup_corepack :
607
+ browsers : true
606
608
- run :
607
609
name : Install dependencies
608
- command : |
609
- pnpm
610
- node ../../scripts/useBuildFromSource.js .
610
+ command : pnpm install --ignore-workspace
611
611
- run :
612
612
name : Test fixture
613
613
command : pnpm start
614
614
test_bundling_esbuild :
615
615
<< : *default-job
616
- working_directory : /tmp/material-ui/test/bundling/fixtures/esbuild/
617
616
docker :
618
617
- image : mcr.microsoft.com/playwright:v1.47.2-focal
618
+ working_directory : /tmp/material-ui/test/bundling/fixtures/esbuild/
619
619
steps :
620
620
- checkout :
621
621
path : /tmp/material-ui
622
622
- attach_workspace :
623
- at : /tmp/material-ui/packages
624
- - run :
625
- name : Prepare fixture
626
- command : |
627
- node ../../scripts/createFixture esbuild
623
+ at : /tmp/material-ui/packed
624
+ - setup_corepack :
625
+ browsers : true
628
626
- run :
629
627
name : Install dependencies
630
- command : |
631
- pnpm
632
- node ../../scripts/useBuildFromSource.js .
628
+ command : pnpm install --ignore-workspace
633
629
- run :
634
630
name : Test fixture
635
- command : |
636
- # TODO: Known failure
637
- set +e
638
- pnpm start
639
- exit 0
631
+ command : pnpm start
640
632
test_bundling_gatsby :
641
633
<< : *default-job
642
- working_directory : /tmp/material-ui/test/bundling/fixtures/gatsby/
643
634
docker :
644
635
- image : mcr.microsoft.com/playwright:v1.47.2-focal
636
+ environment :
637
+ GATSBY_CPU_COUNT : ' 3'
638
+ working_directory : /tmp/material-ui/test/bundling/fixtures/gatsby/
645
639
steps :
646
640
- checkout :
647
641
path : /tmp/material-ui
648
642
- attach_workspace :
649
- at : /tmp/material-ui/packages
650
- - run :
651
- name : Prepare fixture
652
- command : |
653
- node ../../scripts/useBuildFromSource.js .
654
- node ../../scripts/createFixture gatsby
643
+ at : /tmp/material-ui/packed
644
+ - setup_corepack :
645
+ browsers : true
655
646
- run :
656
647
name : Install dependencies
657
- command : pnpm
648
+ command : pnpm install --ignore-workspace
658
649
- run :
659
650
name : Test fixture
660
651
command : pnpm start
652
+
661
653
test_bundle_size_monitor :
662
654
<< : *default-job
663
655
steps :
@@ -668,6 +660,7 @@ jobs:
668
660
command : pnpm danger ci
669
661
environment :
670
662
DANGER_COMMAND : prepareBundleSizeReport
663
+ - setup_corepack
671
664
- run :
672
665
name : build @mui packages
673
666
command : pnpm lerna run --ignore @mui/icons-material --concurrency 6 --scope "@mui/*" build
@@ -807,19 +800,15 @@ workflows:
807
800
jobs :
808
801
- test_bundling_prepare :
809
802
<< : *default-context
810
- - test_bundling_node-esm :
803
+ - test_bundling_node_cjs :
811
804
<< : *default-context
812
805
requires :
813
806
- test_bundling_prepare
814
- - test_bundling_next-webpack4 :
807
+ - test_bundling_node_esm :
815
808
<< : *default-context
816
809
requires :
817
810
- test_bundling_prepare
818
- - test_bundling_next-webpack5 :
819
- << : *default-context
820
- requires :
821
- - test_bundling_prepare
822
- - test_bundling_create-react-app :
811
+ - test_bundling_create_react_app :
823
812
<< : *default-context
824
813
requires :
825
814
- test_bundling_prepare
@@ -839,6 +828,15 @@ workflows:
839
828
<< : *default-context
840
829
requires :
841
830
- test_bundling_prepare
831
+ - test_bundling_next_webpack4 :
832
+ << : *default-context
833
+ requires :
834
+ - test_bundling_prepare
835
+ - test_bundling_next_webpack5 :
836
+ << : *default-context
837
+ requires :
838
+ - test_bundling_prepare
839
+
842
840
profile :
843
841
when :
844
842
equal : [profile, << pipeline.parameters.workflow >>]
0 commit comments