Skip to content

Commit

Permalink
add test-runner-dev to CI
Browse files Browse the repository at this point in the history
  • Loading branch information
yannbf committed Mar 11, 2023
1 parent e793afb commit e3b9acf
Showing 1 changed file with 53 additions and 19 deletions.
72 changes: 53 additions & 19 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit e3b9acf

Please sign in to comment.