Skip to content

Commit 96fe5fb

Browse files
committed
integrate playwright to github workflow
1 parent 2d73cdb commit 96fe5fb

File tree

1 file changed

+30
-0
lines changed

1 file changed

+30
-0
lines changed

.github/workflows/playwright.yml

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
name: Playwright Tests
2+
on:
3+
push:
4+
branches: [ main, master ]
5+
pull_request:
6+
branches: [ main, master ]
7+
jobs:
8+
test:
9+
timeout-minutes: 60
10+
runs-on: ubuntu-latest
11+
steps:
12+
- uses: actions/checkout@v4
13+
- uses: actions/setup-node@v4
14+
with:
15+
node-version: 16
16+
- name: Install dependencies
17+
working-directory: ./web/playwright
18+
run: npm ci
19+
- name: Install Playwright Browsers
20+
working-directory: ./web/playwright
21+
run: npx playwright install --with-deps
22+
- name: Run Playwright tests
23+
working-directory: ./web/playwright
24+
run: npx playwright test
25+
- uses: actions/upload-artifact@v3
26+
if: always()
27+
with:
28+
name: playwright-report
29+
path: ./web/playwright/playwright-report/
30+
retention-days: 30

0 commit comments

Comments
 (0)