Skip to content

Commit 4c00b1d

Browse files
committed
ci: add playwright action
ci: fix install ci: remove hard code version
1 parent ac5a851 commit 4c00b1d

File tree

1 file changed

+34
-0
lines changed

1 file changed

+34
-0
lines changed

.github/workflows/playwright.yml

+34
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
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: lts/*
16+
- name: Install pnpm
17+
uses: pnpm/action-setup@v4
18+
- name: Use Node.js ${{ matrix.node-version }}
19+
uses: actions/setup-node@v4
20+
with:
21+
node-version: ${{ matrix.node-version }}
22+
cache: "pnpm"
23+
- name: Install dependencies
24+
run: pnpm install
25+
- name: Install Playwright Browsers
26+
run: npx playwright install --with-deps
27+
- name: Run Playwright tests
28+
run: npx playwright test
29+
- uses: actions/upload-artifact@v4
30+
if: ${{ !cancelled() }}
31+
with:
32+
name: playwright-report
33+
path: playwright-report/
34+
retention-days: 30

0 commit comments

Comments
 (0)