Skip to content

Commit 74370fe

Browse files
chore: set up Playwright GitHub actions
1 parent 61bf1cd commit 74370fe

File tree

1 file changed

+31
-0
lines changed

1 file changed

+31
-0
lines changed

.github/workflows/playwright.yml

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
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: pnpm/action-setup@v4
14+
with:
15+
version: 9
16+
- uses: actions/setup-node@v4
17+
with:
18+
node-version: lts/*
19+
cache: 'pnpm'
20+
- name: Install dependencies
21+
run: pnpm install --frozen-lockfile
22+
- name: Install Playwright Browsers
23+
run: pnpm exec playwright install --with-deps
24+
- name: Run Playwright tests
25+
run: pnpm exec playwright test
26+
- uses: actions/upload-artifact@v4
27+
if: ${{ !cancelled() }}
28+
with:
29+
name: playwright-report
30+
path: playwright-report/
31+
retention-days: 30

0 commit comments

Comments
 (0)