@@ -113,48 +113,22 @@ aliases:
113
113
114
114
e2e_tests_production_runtime_alias : &e2e_tests_production_runtime_alias
115
115
<< : *e2e-executor
116
- parameters :
117
- nightly :
118
- type : boolean
119
- default : false
120
116
steps :
121
117
- e2e-test :
122
118
test_path : e2e-tests/production-runtime
123
119
test_command : CYPRESS_PROJECT_ID=is8aoq CYPRESS_RECORD_KEY=cb4708d2-1578-4665-9a07-c59f8db28d91 yarn test && CYPRESS_PROJECT_ID=htpvkv CYPRESS_RECORD_KEY=0d734841-c613-41d2-86e5-df0b5968f93f yarn test:offline
124
- skip_file_change_test : << parameters.nightly >>
125
- - notify-status :
126
- condition : << parameters.nightly >>
127
120
128
121
e2e_tests_development_runtime_alias : &e2e_tests_development_runtime_alias
129
122
<< : *e2e-executor
130
- parameters :
131
- nightly :
132
- type : boolean
133
- default : false
134
123
environment :
135
124
<< : *e2e-executor-env
136
125
CYPRESS_PROJECT_ID : s3j3qj
137
126
CYPRESS_RECORD_KEY : 3904ca0c-bc98-47d9-8371-b68c5e81fb9b
138
127
steps :
139
128
- e2e-test :
140
129
test_path : e2e-tests/development-runtime
141
- skip_file_change_test : << parameters.nightly >>
142
- - notify-status :
143
- condition : << parameters.nightly >>
144
130
145
131
commands :
146
- notify-status :
147
- parameters :
148
- condition :
149
- type : boolean
150
- default : false
151
- steps :
152
- - when :
153
- condition : << parameters.condition >>
154
- steps :
155
- - slack/status :
156
- channel : eng-react-integration-status
157
-
158
132
e2e-test :
159
133
parameters :
160
134
skip_file_change_test :
@@ -168,6 +142,9 @@ commands:
168
142
test_command :
169
143
type : string
170
144
default : " yarn test"
145
+ react_version :
146
+ type : string
147
+ default : " "
171
148
steps :
172
149
- checkout
173
150
# In case of failure, add these steps again. Cache probably got deleted
@@ -180,6 +157,14 @@ commands:
180
157
- run : ./scripts/assert-changed-files.sh "<< parameters.trigger_pattern >>|<< parameters.test_path >>/*"
181
158
182
159
- << : *attach_to_bootstrap
160
+ - when :
161
+ condition :
162
+ not :
163
+ equal : ["", << parameters.react_version >>]
164
+ steps :
165
+ - run :
166
+ name : Upgrade React to << parameters.react_version >>
167
+ command : " REACT_VERSION=<< parameters.react_version >> TEST_PATH=<< parameters.test_path >> node ./scripts/upgrade-react"
183
168
- run :
184
169
name : Install gatsby-dev
185
170
command : yarn global add gatsby-dev-cli
@@ -378,20 +363,27 @@ jobs:
378
363
e2e_tests_development_runtime :
379
364
<< : *e2e_tests_development_runtime_alias
380
365
381
- e2e_tests_development_runtime_with_experimental_react :
382
- << : *e2e_tests_development_runtime_alias
383
-
384
- e2e_tests_development_runtime_with_next_react :
385
- << : *e2e_tests_development_runtime_alias
366
+ e2e_tests_development_runtime_with_react_18 :
367
+ << : *e2e-executor
368
+ environment :
369
+ << : *e2e-executor-env
370
+ CYPRESS_PROJECT_ID : nusozx
371
+ CYPRESS_RECORD_KEY : 6500fa9b-7710-4968-b321-1a544c9a1fdc
372
+ steps :
373
+ - e2e-test :
374
+ test_path : e2e-tests/development-runtime
375
+ react_version : " ^18.0.0"
386
376
387
377
e2e_tests_production_runtime :
388
378
<< : *e2e_tests_production_runtime_alias
389
379
390
- e2e_tests_production_runtime_with_experimental_react :
391
- << : *e2e_tests_production_runtime_alias
392
-
393
- e2e_tests_production_runtime_with_next_react :
394
- << : *e2e_tests_production_runtime_alias
380
+ e2e_tests_production_runtime_with_react_18 :
381
+ << : *e2e-executor
382
+ steps :
383
+ - e2e-test :
384
+ test_path : e2e-tests/production-runtime
385
+ test_command : CYPRESS_PROJECT_ID=5k8zbj CYPRESS_RECORD_KEY=ec36ff6b-3db9-48a9-8f7b-2faf301ab800 yarn test && CYPRESS_PROJECT_ID=yvdct2 CYPRESS_RECORD_KEY=2a4f4f31-0dfb-4a56-80e0-9ed42a1131a4 yarn test:offline
386
+ react_version : " ^18.0.0"
395
387
396
388
themes_e2e_tests_development_runtime :
397
389
<< : *e2e-executor
@@ -556,69 +548,9 @@ jobs:
556
548
- store_test_results :
557
549
path : ./test-results/jest-node/
558
550
559
- bootstrap-with-experimental-react :
560
- executor : node
561
- parameters :
562
- version :
563
- type : string
564
- default : " next"
565
- steps :
566
- - checkout
567
- # python 2 is not built in and node-gyp needs it to build lmdb
568
- - run : sudo apt-get update && sudo apt-get install python -y
569
- - run :
570
- name : " Update React to prerelease"
571
- command : " REACT_CHANNEL=<< parameters.version >> node ./scripts/upgrade-react"
572
- - run : yarn install
573
- - run : yarn bootstrap -- concurrency=2
574
- - run : yarn list react
575
- - persist_to_workspace :
576
- root : ./
577
- paths :
578
- - " *"
579
-
580
551
workflows :
581
552
version : 2
582
553
583
- nightly-react-next :
584
- triggers :
585
- - schedule :
586
- cron : " 0 0 * * 1,2,3,4,5"
587
- filters :
588
- branches :
589
- only :
590
- - master
591
- jobs :
592
- - bootstrap-with-experimental-react :
593
- version : " next"
594
- - e2e_tests_development_runtime_with_next_react :
595
- nightly : true
596
- requires :
597
- - bootstrap-with-experimental-react
598
- - e2e_tests_production_runtime_with_next_react :
599
- nightly : true
600
- requires :
601
- - bootstrap-with-experimental-react
602
- nightly-react-experimental :
603
- triggers :
604
- - schedule :
605
- cron : " 0 0 * * 1,2,3,4,5"
606
- filters :
607
- branches :
608
- only :
609
- - master
610
- jobs :
611
- - bootstrap-with-experimental-react :
612
- version : " experimental"
613
- - e2e_tests_development_runtime_with_experimental_react :
614
- nightly : true
615
- requires :
616
- - bootstrap-with-experimental-react
617
- - e2e_tests_production_runtime_with_experimental_react :
618
- nightly : true
619
- requires :
620
- - bootstrap-with-experimental-react
621
-
622
554
# Ideally, we should trigger this when any new release is created, sadly there is no easy way to do it:
623
555
# - Can't rely on tags: GitHub won't send webhook to CircleCI when there are more than 3 tags in one push
624
556
# See: https://docs.github.com/en/developers/webhooks-and-events/webhooks/webhook-events-and-payloads#push
@@ -692,6 +624,10 @@ workflows:
692
624
<< : *e2e-test-workflow
693
625
- e2e_tests_production_runtime :
694
626
<< : *e2e-test-workflow
627
+ - e2e_tests_development_runtime_with_react_18 :
628
+ << : *e2e-test-workflow
629
+ - e2e_tests_production_runtime_with_react_18 :
630
+ << : *e2e-test-workflow
695
631
- themes_e2e_tests_production_runtime :
696
632
<< : *e2e-test-workflow
697
633
- themes_e2e_tests_development_runtime :
0 commit comments