Skip to content

Commit 87ba779

Browse files
committed
integrate playwright to github workflow
1 parent 2d73cdb commit 87ba779

File tree

1 file changed

+32
-0
lines changed

1 file changed

+32
-0
lines changed

.github/workflows/playwright.yml

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
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: Install dotenv
23+
run: npm install --save dotenv
24+
- name: Run Playwright tests
25+
working-directory: ./web/playwright
26+
run: npx playwright test
27+
- uses: actions/upload-artifact@v3
28+
if: always()
29+
with:
30+
name: playwright-report
31+
path: ./web/playwright/playwright-report/
32+
retention-days: 30

0 commit comments

Comments
 (0)