Skip to content

Commit

Permalink
test-storybookをci用に準備
Browse files Browse the repository at this point in the history
  • Loading branch information
k35o committed Jul 30, 2024
1 parent e367269 commit b053d7e
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 6 deletions.
5 changes: 4 additions & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -43,5 +43,8 @@ jobs:
- name: Run test
run: pnpm run test

- name: Install playwright
run: pnpm run install-playwright

- name: Run test storybook
run: pnpm run test-storybook
run: pnpm run test-storybook:ci
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,8 @@
"test:ui": "vitest --ui",
"coverage": "vitest run --coverage",
"test-storybook": "test-storybook",
"install-playwright": "playwright install --with-deps",
"postinstall": "pnpm install-playwright"
"test-storybook:ci": "pnpm dlx concurrently -k -s first -n \"SB,TEST\" -c \"magenta,blue\" \"pnpm run build-storybook --quiet && pnpm dlx http-server storybook-static --port 6006 --silent\" \"wait-on tcp:6006 && pnpm run test-storybook --maxWorkers=2\"",
"install-playwright": "playwright install --with-deps"
},
"dependencies": {
"@heroicons/react": "2.1.5",
Expand Down
6 changes: 3 additions & 3 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit b053d7e

Please sign in to comment.