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 20, 2023
1 parent 9ec3955 commit d2b8916
Show file tree
Hide file tree
Showing 2 changed files with 53 additions and 18 deletions.
70 changes: 52 additions & 18 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -413,7 +413,7 @@ jobs:
root: .
paths:
- sandbox/*/storybook-static
test-runner-sandboxes:
test-runner-production:
parameters:
parallelism:
type: integer
Expand All @@ -434,6 +434,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:
Expand Down Expand Up @@ -533,9 +554,6 @@ workflows:
- build-sandboxes:
requires:
- create-sandboxes
- test-runner-sandboxes:
requires:
- build-sandboxes
- chromatic-sandboxes:
requires:
- build-sandboxes
Expand All @@ -545,6 +563,12 @@ workflows:
- e2e-dev:
requires:
- create-sandboxes
- test-runner-production:
requires:
- build-sandboxes
- test-runner-dev:
requires:
- create-sandboxes
pr:
when:
equal: [pr, << pipeline.parameters.workflow >>]
Expand Down Expand Up @@ -583,10 +607,6 @@ workflows:
parallelism: 9
requires:
- create-sandboxes
- test-runner-sandboxes:
parallelism: 9
requires:
- build-sandboxes
- chromatic-sandboxes:
parallelism: 9
requires:
Expand All @@ -596,7 +616,13 @@ workflows:
requires:
- build-sandboxes
- e2e-dev:
requires:
- create-sandboxes
- test-runner-production:
parallelism: 9
requires:
- build-sandboxes
- test-runner-dev:
requires:
- create-sandboxes
merged:
Expand Down Expand Up @@ -637,10 +663,6 @@ workflows:
parallelism: 18
requires:
- create-sandboxes
- test-runner-sandboxes:
parallelism: 18
requires:
- build-sandboxes
- chromatic-sandboxes:
parallelism: 18
requires:
Expand All @@ -650,9 +672,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 >>]
Expand All @@ -678,10 +708,6 @@ workflows:
parallelism: 30
requires:
- create-sandboxes
- test-runner-sandboxes:
parallelism: 30
requires:
- build-sandboxes
- chromatic-sandboxes:
parallelism: 30
requires:
Expand All @@ -691,6 +717,14 @@ workflows:
requires:
- build-sandboxes
- e2e-dev:
parallelism: 31
parallelism: 4
requires:
- create-sandboxes
- test-runner-production:
parallelism: 30
requires:
- build-sandboxes
- test-runner-dev:
parallelism: 4
requires:
- build-sandboxes
1 change: 1 addition & 0 deletions code/lib/cli/src/sandbox-templates.ts
Original file line number Diff line number Diff line change
Expand Up @@ -117,6 +117,7 @@ const baseTemplates = {
renderer: '@storybook/react',
builder: '@storybook/builder-webpack5',
},
skipTasks: ['e2e-tests-dev', 'test-runner-dev'],
},
'react-vite/default-js': {
name: 'React Vite (JS)',
Expand Down

0 comments on commit d2b8916

Please sign in to comment.