diff --git a/.circleci/config.yml b/.circleci/config.yml index 638e4cc60255..8de2239586b5 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -416,7 +416,7 @@ jobs: root: . paths: - sandbox/*/storybook-static - test-runner-sandboxes: + test-runner-production: parameters: parallelism: type: integer @@ -437,6 +437,27 @@ jobs: template: $(yarn get-template << pipeline.parameters.workflow >> test-runner) - store_test_results: path: test-results + test-runner-dev: + parameters: + parallelism: + type: integer + default: 2 + executor: + class: medium + name: sb_playwright + parallelism: << parameters.parallelism >> + steps: + - git-shallow-clone/checkout_advanced: + clone_options: '--depth 1 --verbose' + - attach_workspace: + at: . + - run: + name: Running Test Runner in Dev mode + command: yarn task --task test-runner-dev --template $(yarn get-template << pipeline.parameters.workflow >> test-runner-dev) --no-link --start-from=never --junit + - report-workflow-on-failure: + template: $(yarn get-template << pipeline.parameters.workflow >> test-runner-dev) + - store_test_results: + path: test-results chromatic-sandboxes: parameters: parallelism: @@ -536,9 +557,6 @@ workflows: - build-sandboxes: requires: - create-sandboxes - - test-runner-sandboxes: - requires: - - build-sandboxes - chromatic-sandboxes: requires: - build-sandboxes @@ -548,6 +566,12 @@ workflows: - e2e-dev: requires: - create-sandboxes + - test-runner-production: + requires: + - build-sandboxes + - test-runner-dev: + requires: + - build-sandboxes pr: when: equal: [pr, << pipeline.parameters.workflow >>] @@ -586,10 +610,6 @@ workflows: parallelism: 9 requires: - create-sandboxes - - test-runner-sandboxes: - parallelism: 9 - requires: - - build-sandboxes - chromatic-sandboxes: parallelism: 9 requires: @@ -599,9 +619,15 @@ workflows: requires: - build-sandboxes - e2e-dev: - parallelism: 9 requires: - create-sandboxes + - test-runner-production: + parallelism: 9 + requires: + - build-sandboxes + - test-runner-dev: + requires: + - build-sandboxes merged: when: equal: [merged, << pipeline.parameters.workflow >>] @@ -640,10 +666,6 @@ workflows: parallelism: 18 requires: - create-sandboxes - - test-runner-sandboxes: - parallelism: 18 - requires: - - build-sandboxes - chromatic-sandboxes: parallelism: 18 requires: @@ -653,9 +675,17 @@ workflows: requires: - build-sandboxes - e2e-dev: - parallelism: 18 + parallelism: 4 requires: - create-sandboxes + - test-runner-production: + parallelism: 18 + requires: + - build-sandboxes + - test-runner-dev: + parallelism: 4 + requires: + - build-sandboxes daily: when: equal: [daily, << pipeline.parameters.workflow >>] @@ -681,10 +711,6 @@ workflows: parallelism: 31 requires: - create-sandboxes - - test-runner-sandboxes: - parallelism: 31 - requires: - - build-sandboxes - chromatic-sandboxes: parallelism: 31 requires: @@ -694,6 +720,14 @@ workflows: requires: - build-sandboxes - e2e-dev: - parallelism: 31 + parallelism: 5 requires: - create-sandboxes + - test-runner-production: + parallelism: 31 + requires: + - build-sandboxes + - test-runner-dev: + parallelism: 5 + requires: + - build-sandboxes