Skip to content

Commit 19f5069

Browse files
committed
Add build-storybook task to turbo.json and remove Storybook build steps from GitHub Actions workflow
1 parent fe3d78a commit 19f5069

2 files changed

Lines changed: 4 additions & 11 deletions

File tree

.github/workflows/test.yml

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -34,17 +34,6 @@ jobs:
3434
- name: Install Playwright Chromium
3535
run: npx playwright install chromium
3636

37-
- name: Build Storybook
38-
run: yarn build-storybook
39-
40-
- name: Start Storybook server
41-
run: yarn workspace @lambdacurry/forms-docs storybook --ci --port 6006 &
42-
env:
43-
NODE_OPTIONS: --max-old-space-size=4096
44-
45-
- name: Wait for Storybook to be ready
46-
run: npx wait-on http://localhost:6006
47-
4837
- name: Run tests
4938
run: yarn test
5039

turbo.json

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,10 @@
2626
"test": {
2727
"dependsOn": ["build"],
2828
"cache": true
29+
},
30+
"build-storybook": {
31+
"cache": true,
32+
"outputs": ["storybook-static/**"]
2933
}
3034
}
3135
}

0 commit comments

Comments
 (0)