-
Notifications
You must be signed in to change notification settings - Fork 3
40 lines (40 loc) · 1.1 KB
/
playwright.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
name: Playwright Tests
on:
push:
branches: [master]
pull_request:
branches: [master]
jobs:
test_playwright:
name: Playwright tests queue
timeout-minutes: 60
runs-on: ubuntu-latest
steps:
- name: Checkout repo
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Setup pnpm
uses: wyvox/action-setup-pnpm@v3
with:
node-version: "20.1.0"
- name: Install Playwright Browsers
run: pnpm exec playwright install
- name: Run Playwright tests
run: pnpm test:playwright
- name: Merge coverage results
run: pnpm run nyc:merge:playwright
- name: Generate coverage report
run: pnpm run nyc:report
- name: Upload Playwright coverage report
uses: actions/upload-artifact@v4
with:
name: playwright-coverage
path: ./coverage/playwright-final.json
retention-days: 30
- uses: actions/upload-artifact@v4
if: always()
with:
name: playwright-report
path: playwright-report/
retention-days: 30