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 e793afb commit 337d72d
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 @@ -416,7 +416,7 @@ jobs:
root: .
paths:
- sandbox/*/storybook-static
test-runner-sandboxes:
test-runner-production:
parameters:
parallelism:
type: integer
Expand All @@ -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:
Expand Down Expand Up @@ -536,9 +557,6 @@ workflows:
- build-sandboxes:
requires:
- create-sandboxes
- test-runner-sandboxes:
requires:
- build-sandboxes
- chromatic-sandboxes:
requires:
- build-sandboxes
Expand All @@ -548,6 +566,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 @@ -586,10 +610,6 @@ workflows:
parallelism: 9
requires:
- create-sandboxes
- test-runner-sandboxes:
parallelism: 9
requires:
- build-sandboxes
- chromatic-sandboxes:
parallelism: 9
requires:
Expand All @@ -599,7 +619,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 @@ -640,10 +666,6 @@ workflows:
parallelism: 18
requires:
- create-sandboxes
- test-runner-sandboxes:
parallelism: 18
requires:
- build-sandboxes
- chromatic-sandboxes:
parallelism: 18
requires:
Expand All @@ -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 >>]
Expand All @@ -681,10 +711,6 @@ workflows:
parallelism: 31
requires:
- create-sandboxes
- test-runner-sandboxes:
parallelism: 31
requires:
- build-sandboxes
- chromatic-sandboxes:
parallelism: 31
requires:
Expand All @@ -694,6 +720,14 @@ workflows:
requires:
- build-sandboxes
- e2e-dev:
parallelism: 31
parallelism: 4
requires:
- create-sandboxes
- test-runner-production:
parallelism: 31
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 337d72d

Please sign in to comment.