Skip to content

Commit 0dbb05a

Browse files
authored
Merge pull request #68 from Yeti-Robotics/ui-tests
Create ui-tests.yml
2 parents 927b521 + b7069c4 commit 0dbb05a

File tree

1 file changed

+24
-0
lines changed

1 file changed

+24
-0
lines changed

.github/workflows/ui-tests.yml

+24
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
name: 'Interaction and Accessibility Tests'
2+
on: push
3+
jobs:
4+
# Run interaction and accessibility tests
5+
interaction-and-accessibility:
6+
runs-on: ubuntu-latest
7+
steps:
8+
- uses: actions/checkout@v4
9+
with:
10+
fetch-depth: 0
11+
- uses: actions/setup-node@v4
12+
with:
13+
node-version: 20
14+
- name: Install dependencies
15+
run: npm install
16+
- name: Install Playwright
17+
run: npx playwright install --with-deps
18+
- name: Build Storybook
19+
run: npm run build:storybook --quiet;
20+
- name: Serve Storybook and run tests
21+
run: |
22+
npx concurrently -k -s first -n "SB,TEST" -c "magenta,blue" \
23+
"npx http-server storybook-static --port 6006 --silent" \
24+
"npx wait-on tcp:6006 && yarn test-storybook"

0 commit comments

Comments
 (0)