[DevTools] Run e2e Regression Tests Hourly on Circle CI (#24648)
Modifies Circle CI so we run e2e regression tests hourly on Circle CI
Luna Ruan committed
Jun 1, 2022 at 10:55 UTC
d2c9e834ae07377edbc94128eec4480693b64292
1 file changed
+41
.circleci/config.yml
+41
@@ -241,6 +241,36 @@ jobs:
241
- run: ./scripts/circleci/download_devtools_regression_build.js << parameters.version >> --replaceBuild
242
- run: node ./scripts/jest/jest-cli.js --build --project devtools --release-channel=experimental --reactVersion << parameters.version >> --ci
243
244
+ run_devtools_e2e_tests_for_versions:
245
+ docker: *docker
246
+ environment: *environment
247
+ parallelism: *TEST_PARALLELISM
248
+ parameters:
249
+ version:
250
+ type: string
251
+ steps:
252
+ - checkout
253
+ - attach_workspace:
254
+ at: .
255
+ - run: yarn workspaces info | head -n -1 > workspace_info.txt
256
+ - *restore_node_modules
257
+ - run:
258
+ name: Install nested packages from Yarn cache
259
+ command: yarn --frozen-lockfile --cache-folder ~/.cache/yarn
260
+ - run:
261
+ name: Playwright install deps
262
+ command: |
263
+ npx playwright install
264
+ sudo npx playwright install-deps
265
+ - run: ./scripts/circleci/download_devtools_regression_build.js << parameters.version >>
266
+ - run:
267
+ environment:
268
+ RELEASE_CHANNEL: experimental
269
+ command: ./scripts/circleci/run_devtools_e2e_tests.js << parameters.version >>
270
+ - run:
271
+ name: Cleanup build regression folder
272
+ command: rm -r ./build-regression
273
+
274
yarn_lint_build:
275
docker: *docker
276
environment: *environment
@@ -542,6 +572,17 @@ workflows:
572
- "16.8" # hooks
573
- "17.0"
574
- "18.0"
575
+ - run_devtools_e2e_tests_for_versions:
576
+ requires:
577
+ - build_devtools_and_process_artifacts
578
+ matrix:
579
+ parameters:
580
+ version:
581
+ - "16.0"
582
+ - "16.5" # schedule package
583
+ - "16.8" # hooks
584
+ - "17.0"
585
+ - "18.0"
586
587
# Used to publish a prerelease manually via the command line
588
publish_preleases: