Skip to content

Commit

Permalink
ci: use sharding for test-runner (#2967)
Browse files Browse the repository at this point in the history
* ci: use sharding for test-runner

* ci: use 4 shards
  • Loading branch information
Niznikr committed Feb 24, 2023
1 parent 606d88b commit 026765e
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 7 deletions.
5 changes: 4 additions & 1 deletion .github/workflows/on_pull_request.yml
Expand Up @@ -303,6 +303,9 @@ jobs:
name: Storybook test runner
needs: build
runs-on: ubuntu-latest
strategy:
matrix:
shard: [1/4, 2/4, 3/4, 4/4]
steps:
- name: Checkout Repo
uses: actions/checkout@v3
Expand Down Expand Up @@ -360,7 +363,7 @@ jobs:
run: npx playwright install --with-deps

- name: Run Storybook test runner
run: yarn start:test:storybook
run: yarn start-server-and-test 'NODE_ENV=test yarn start:storybook' http://localhost:9001 'yarn test:storybook --shard=${{ matrix.shard }}'

prettier:
name: Prettier checks
Expand Down
2 changes: 1 addition & 1 deletion package.json
Expand Up @@ -136,7 +136,7 @@
"@storybook/cli": "7.0.0-beta.45",
"@storybook/react": "7.0.0-beta.45",
"@storybook/react-vite": "7.0.0-beta.45",
"@storybook/test-runner": "0.9.1",
"@storybook/test-runner": "0.9.3",
"@storybook/testing-library": "0.0.13",
"@swc/core": "^1.2.160",
"@swc/jest": "^0.2.20",
Expand Down
10 changes: 5 additions & 5 deletions yarn.lock
Expand Up @@ -9892,9 +9892,9 @@ __metadata:
languageName: node
linkType: hard

"@storybook/test-runner@npm:0.9.1":
version: 0.9.1
resolution: "@storybook/test-runner@npm:0.9.1"
"@storybook/test-runner@npm:0.9.3":
version: 0.9.3
resolution: "@storybook/test-runner@npm:0.9.3"
dependencies:
"@babel/core": ^7.18.13
"@babel/generator": ^7.18.13
Expand Down Expand Up @@ -9927,7 +9927,7 @@ __metadata:
ts-dedent: ^2.0.0
bin:
test-storybook: bin/test-storybook.js
checksum: de2bf0866adb2fff854f6dfcd7e3904b14326bc8c3f0f137eaa20ad76bc15365443f949cd4299918c34177de4cadb002ffc8825f0dccd669bb95722085c9f645
checksum: 665dfddd8b18005b9b0203115e35585410fbbcbcccd9ff220e18914e1131c88898216b468a4ed5d956ceefe2ca1a38d88d22b10b445be0dedb89a19c5f539bca
languageName: node
linkType: hard

Expand Down Expand Up @@ -37416,7 +37416,7 @@ fsevents@^1.2.7:
"@storybook/cli": 7.0.0-beta.45
"@storybook/react": 7.0.0-beta.45
"@storybook/react-vite": 7.0.0-beta.45
"@storybook/test-runner": 0.9.1
"@storybook/test-runner": 0.9.3
"@storybook/testing-library": 0.0.13
"@swc/core": ^1.2.160
"@swc/jest": ^0.2.20
Expand Down

0 comments on commit 026765e

Please sign in to comment.