-
Notifications
You must be signed in to change notification settings - Fork 7
35 lines (33 loc) · 960 Bytes
/
playwright.yml
File metadata and controls
35 lines (33 loc) · 960 Bytes
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
name: Playwright tests
on:
push:
branches:
- main
pull_request:
jobs:
playwright:
timeout-minutes: 30
runs-on: ubuntu-latest
strategy:
matrix:
project: [chromium, firefox, webkit]
test-type: [ct, e2e]
fail-fast: false
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 22.x
- name: Install dependencies
run: npm ci
- name: Install Playwright
run: npx playwright install --with-deps
- name: Run ${{ matrix.test-type }} tests on ${{ matrix.project }}
run: npm run playwright-${{ matrix.test-type }} -- --project ${{ matrix.project }}
- name: Upload playwright report
if: failure()
uses: actions/upload-artifact@v4
with:
name: playwright-report-${{ matrix.project }}-${{ matrix.test-type }}
path: playwright-report/
retention-days: 15