Skip to content

Commit adc41b0

Browse files
Create pw.yml
1 parent b6bacdd commit adc41b0

File tree

1 file changed

+25
-0
lines changed

1 file changed

+25
-0
lines changed

.github/workflows/main.yml

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
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 dependencies
17+
run: npm ci
18+
- name: Run Playwright tests
19+
run: npx playwright test
20+
- uses: actions/upload-artifact@v4
21+
if: ${{ !cancelled() }}
22+
with:
23+
name: playwright-report
24+
path: playwright-report/
25+
retention-days: 30

0 commit comments

Comments
 (0)