@@ -21,7 +21,7 @@ parameters:
21
21
type : string
22
22
default : ' '
23
23
24
- defaults : &defaults
24
+ default-job : &default-job
25
25
parameters :
26
26
react-version :
27
27
description : The version of react to be used
@@ -47,6 +47,10 @@ defaults: &defaults
47
47
docker :
48
48
- image : cimg/node:18.19
49
49
50
+ default-context : &default-context
51
+ context :
52
+ - org-global
53
+
50
54
# CircleCI has disabled the cache across forks for security reasons.
51
55
# Following their official statement, it was a quick solution, they
52
56
# are working on providing this feature back with appropriate security measures.
@@ -113,7 +117,7 @@ commands:
113
117
114
118
jobs :
115
119
checkout :
116
- << : *defaults
120
+ << : *default-job
117
121
steps :
118
122
- checkout
119
123
- install_js
@@ -135,7 +139,7 @@ jobs:
135
139
pnpm dedupe --check
136
140
fi
137
141
test_unit :
138
- << : *defaults
142
+ << : *default-job
139
143
steps :
140
144
- checkout
141
145
- install_js
@@ -187,7 +191,7 @@ jobs:
187
191
chmod +x codecov
188
192
./codecov -t ${CODECOV_TOKEN} -Z -F "$REACT_VERSION-jsdom"
189
193
test_lint :
190
- << : *defaults
194
+ << : *default-job
191
195
steps :
192
196
- checkout
193
197
- install_js
@@ -204,7 +208,7 @@ jobs:
204
208
name : Lint Markdown
205
209
command : pnpm markdownlint
206
210
test_static :
207
- << : *defaults
211
+ << : *default-job
208
212
steps :
209
213
- checkout
210
214
- install_js
@@ -246,7 +250,7 @@ jobs:
246
250
pnpm docs:link-check
247
251
git add -A && git diff --exit-code --staged
248
252
test_types :
249
- << : *defaults
253
+ << : *default-job
250
254
resource_class : ' medium+'
251
255
steps :
252
256
- checkout
@@ -288,7 +292,7 @@ jobs:
288
292
- packages/mui-lab/build
289
293
- packages/mui-utils/build
290
294
test_types_next :
291
- << : *defaults
295
+ << : *default-job
292
296
resource_class : ' medium+'
293
297
steps :
294
298
- checkout
@@ -335,7 +339,7 @@ jobs:
335
339
node scripts/testBuiltTypes.mjs
336
340
exit 0
337
341
test_browser :
338
- << : *defaults
342
+ << : *default-job
339
343
resource_class : ' medium+'
340
344
docker :
341
345
- image : mcr.microsoft.com/playwright:v1.42.1-focal
@@ -366,7 +370,7 @@ jobs:
366
370
path : /tmp/_karma_webpack_
367
371
destination : artifact-file
368
372
test_e2e :
369
- << : *defaults
373
+ << : *default-job
370
374
docker :
371
375
- image : mcr.microsoft.com/playwright:v1.42.1-focal
372
376
environment :
@@ -386,7 +390,7 @@ jobs:
386
390
command : pnpm test:umd
387
391
test_e2e_website :
388
392
# NOTE: This workflow runs after successful docs deploy. See /test/e2e-website/README.md#ci
389
- << : *defaults
393
+ << : *default-job
390
394
docker :
391
395
- image : mcr.microsoft.com/playwright:v1.42.1-focal
392
396
environment :
@@ -401,7 +405,7 @@ jobs:
401
405
environment :
402
406
PLAYWRIGHT_TEST_BASE_URL : << parameters.e2e-base-url >>
403
407
test_profile :
404
- << : *defaults
408
+ << : *default-job
405
409
docker :
406
410
- image : mcr.microsoft.com/playwright:v1.42.1-focal
407
411
environment :
@@ -428,7 +432,7 @@ jobs:
428
432
path : tmp/react-profiler-report/karma
429
433
destination : react-profiler-report/karma
430
434
test_regressions :
431
- << : *defaults
435
+ << : *default-job
432
436
docker :
433
437
- image : mcr.microsoft.com/playwright:v1.42.1-focal
434
438
environment :
@@ -444,7 +448,7 @@ jobs:
444
448
name : Upload screenshots to Argos CI
445
449
command : pnpm test:argos
446
450
test_bundling_prepare :
447
- << : *defaults
451
+ << : *default-job
448
452
steps :
449
453
- checkout
450
454
- install_js
@@ -457,7 +461,7 @@ jobs:
457
461
- ' */build'
458
462
459
463
test_bundling_node-esm :
460
- << : *defaults
464
+ << : *default-job
461
465
working_directory : /tmp/material-ui/test/bundling/fixtures/node-esm/
462
466
steps :
463
467
- checkout :
@@ -481,7 +485,7 @@ jobs:
481
485
pnpm start
482
486
exit 0
483
487
test_bundling_next-webpack4 :
484
- << : *defaults
488
+ << : *default-job
485
489
working_directory : /tmp/material-ui/test/bundling/fixtures/next-webpack4/
486
490
docker :
487
491
- image : mcr.microsoft.com/playwright:v1.42.1-focal
@@ -505,7 +509,7 @@ jobs:
505
509
name : Test fixture
506
510
command : pnpm start
507
511
test_bundling_next-webpack5 :
508
- << : *defaults
512
+ << : *default-job
509
513
working_directory : /tmp/material-ui/test/bundling/fixtures/next-webpack5/
510
514
docker :
511
515
- image : mcr.microsoft.com/playwright:v1.42.1-focal
@@ -529,7 +533,7 @@ jobs:
529
533
name : Test fixture
530
534
command : pnpm start
531
535
test_bundling_create-react-app :
532
- << : *defaults
536
+ << : *default-job
533
537
working_directory : /tmp/material-ui/test/bundling/fixtures/create-react-app/
534
538
docker :
535
539
- image : mcr.microsoft.com/playwright:v1.42.1-focal
@@ -553,7 +557,7 @@ jobs:
553
557
name : Test fixture
554
558
command : pnpm start
555
559
test_bundling_snowpack :
556
- << : *defaults
560
+ << : *default-job
557
561
working_directory : /tmp/material-ui/test/bundling/fixtures/snowpack/
558
562
docker :
559
563
- image : mcr.microsoft.com/playwright:v1.42.1-focal
@@ -577,7 +581,7 @@ jobs:
577
581
name : Test fixture
578
582
command : pnpm start
579
583
test_bundling_vite :
580
- << : *defaults
584
+ << : *default-job
581
585
working_directory : /tmp/material-ui/test/bundling/fixtures/vite/
582
586
docker :
583
587
- image : mcr.microsoft.com/playwright:v1.42.1-focal
@@ -601,7 +605,7 @@ jobs:
601
605
name : Test fixture
602
606
command : pnpm start
603
607
test_bundling_esbuild :
604
- << : *defaults
608
+ << : *default-job
605
609
working_directory : /tmp/material-ui/test/bundling/fixtures/esbuild/
606
610
docker :
607
611
- image : mcr.microsoft.com/playwright:v1.42.1-focal
@@ -629,7 +633,7 @@ jobs:
629
633
pnpm start
630
634
exit 0
631
635
test_bundling_gatsby :
632
- << : *defaults
636
+ << : *default-job
633
637
working_directory : /tmp/material-ui/test/bundling/fixtures/gatsby/
634
638
docker :
635
639
- image : mcr.microsoft.com/playwright:v1.42.1-focal
@@ -652,7 +656,7 @@ jobs:
652
656
name : Test fixture
653
657
command : pnpm start
654
658
test_bundle_size_monitor :
655
- << : *defaults
659
+ << : *default-job
656
660
steps :
657
661
- checkout
658
662
- install_js
@@ -731,7 +735,7 @@ jobs:
731
735
environment :
732
736
DANGER_COMMAND : ' reportBundleSize'
733
737
test_benchmark :
734
- << : *defaults
738
+ << : *default-job
735
739
docker :
736
740
- image : mcr.microsoft.com/playwright:v1.42.1-focal
737
741
environment :
@@ -751,74 +755,95 @@ workflows:
751
755
when :
752
756
equal : [pipeline, << pipeline.parameters.workflow >>]
753
757
jobs :
754
- - checkout
758
+ - checkout :
759
+ << : *default-context
755
760
- test_unit :
761
+ << : *default-context
756
762
requires :
757
763
- checkout
758
764
- test_lint :
765
+ << : *default-context
759
766
requires :
760
767
- checkout
761
768
- test_static :
769
+ << : *default-context
762
770
requires :
763
771
- checkout
764
772
- test_types :
773
+ << : *default-context
765
774
requires :
766
775
- checkout
767
776
- test_browser :
777
+ << : *default-context
768
778
requires :
769
779
- checkout
770
780
- test_regressions :
781
+ << : *default-context
771
782
requires :
772
783
- checkout
773
784
- test_e2e :
785
+ << : *default-context
774
786
requires :
775
787
- checkout
776
788
- test_bundle_size_monitor :
789
+ << : *default-context
777
790
requires :
778
791
- checkout
779
792
e2e-website :
780
793
when :
781
794
equal : [e2e-website, << pipeline.parameters.workflow >>]
782
795
jobs :
783
- - checkout
796
+ - checkout :
797
+ << : *default-context
784
798
- test_e2e_website :
799
+ << : *default-context
785
800
requires :
786
801
- checkout
787
802
788
803
bundling :
789
804
when :
790
805
equal : [bundling, << pipeline.parameters.workflow >>]
791
806
jobs :
792
- - test_bundling_prepare
807
+ - test_bundling_prepare :
808
+ << : *default-context
793
809
- test_bundling_node-esm :
810
+ << : *default-context
794
811
requires :
795
812
- test_bundling_prepare
796
813
- test_bundling_next-webpack4 :
814
+ << : *default-context
797
815
requires :
798
816
- test_bundling_prepare
799
817
- test_bundling_next-webpack5 :
818
+ << : *default-context
800
819
requires :
801
820
- test_bundling_prepare
802
821
- test_bundling_create-react-app :
822
+ << : *default-context
803
823
requires :
804
824
- test_bundling_prepare
805
825
- test_bundling_snowpack :
826
+ << : *default-context
806
827
requires :
807
828
- test_bundling_prepare
808
829
- test_bundling_vite :
830
+ << : *default-context
809
831
requires :
810
832
- test_bundling_prepare
811
833
- test_bundling_esbuild :
834
+ << : *default-context
812
835
requires :
813
836
- test_bundling_prepare
814
837
- test_bundling_gatsby :
838
+ << : *default-context
815
839
requires :
816
840
- test_bundling_prepare
817
841
profile :
818
842
when :
819
843
equal : [profile, << pipeline.parameters.workflow >>]
820
844
jobs :
821
- - test_profile
845
+ - test_profile :
846
+ << : *default-context
822
847
react-17 :
823
848
triggers :
824
849
- schedule :
@@ -829,12 +854,16 @@ workflows:
829
854
- master
830
855
jobs :
831
856
- test_unit :
857
+ << : *default-context
832
858
react-version : ^17.0.0
833
859
- test_browser :
860
+ << : *default-context
834
861
react-version : ^17.0.0
835
862
- test_regressions :
863
+ << : *default-context
836
864
react-version : ^17.0.0
837
865
- test_e2e :
866
+ << : *default-context
838
867
react-version : ^17.0.0
839
868
react-next :
840
869
triggers :
@@ -846,12 +875,16 @@ workflows:
846
875
- master
847
876
jobs :
848
877
- test_unit :
878
+ << : *default-context
849
879
react-version : next
850
880
- test_browser :
881
+ << : *default-context
851
882
react-version : next
852
883
- test_regressions :
884
+ << : *default-context
853
885
react-version : next
854
886
- test_e2e :
887
+ << : *default-context
855
888
react-version : next
856
889
typescript-next :
857
890
triggers :
@@ -862,9 +895,11 @@ workflows:
862
895
only :
863
896
- master
864
897
jobs :
865
- - test_types_next
898
+ - test_types_next :
899
+ << : *default-context
866
900
benchmark :
867
901
when :
868
902
equal : [benchmark, << pipeline.parameters.workflow >>]
869
903
jobs :
870
- - test_benchmark
904
+ - test_benchmark :
905
+ << : *default-context
0 commit comments