Skip to content

Commit 027033f

Browse files
authored
ci(ally-tests): install playwright browser dependencies (#2038)
1 parent b6a39f6 commit 027033f

File tree

3 files changed

+64
-15
lines changed

3 files changed

+64
-15
lines changed

.github/workflows/actions/storybook/action.yml

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -5,12 +5,12 @@ runs:
55
steps:
66
- name: Build
77
shell: bash
8-
run: echo "Skipping build step for Storybook action"
8+
run: pnpm run build --cache-dir=.turbo --filter !\documentation
99

10-
# - name: Build
11-
# shell: bash
12-
# run: pnpm run build --cache-dir=.turbo --filter !\documentation
10+
- name: Install playwright dependencies
11+
shell: bash
12+
run: pnpm --filter storybook-docs exec playwright install chromium --with-deps
1313

14-
# - name: Test
15-
# shell: bash
16-
# run: pnpm --filter storybook-docs test.a11y
14+
- name: Test
15+
shell: bash
16+
run: pnpm --filter storybook-docs test.a11y

packages/storybook-docs/package.json

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,9 @@
55
"type": "module",
66
"scripts": {
77
"build.watch": "storybook dev -p 6006",
8+
"build.watch.no-open": "storybook dev -p 6006 --no-open",
89
"build": "storybook build",
9-
"test.a11y": "start-server-and-test build.watch http://localhost:6006 test-storybook"
10+
"test.a11y": "start-server-and-test build.watch.no-open http://localhost:6006 test-storybook"
1011
},
1112
"dependencies": {
1213
"@maskito/core": "^3.2.0",
@@ -28,6 +29,7 @@
2829
"@storybook/web-components-vite": "^9.0.18",
2930
"@types/fs-extra": "^9.0.13",
3031
"fs-extra": "^11.2.0",
32+
"playwright": "^1.54.1",
3133
"start-server-and-test": "^2.0.12",
3234
"storybook": "^9.0.18",
3335
"typescript": "~5.6.2",

pnpm-lock.yaml

Lines changed: 54 additions & 7 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)