-
-
Notifications
You must be signed in to change notification settings - Fork 363
48 lines (43 loc) · 1.2 KB
/
playwright.yml
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
41
42
43
44
45
46
47
48
name: Playwright Tests
on:
push:
branches: [main, beta, production]
pull_request:
branches: [main, beta, production]
jobs:
shard:
timeout-minutes: 15
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
shardIndex: [1, 2, 3, 4, 5, 6, 7, 8]
shardTotal: [8]
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 20
- name: Install dependencies
uses: ./.github/actions/pnpm-install
- name: Run Build
run: pnpm generate
- name: Install Playwright Browsers
run: pnpm exec playwright install --with-deps chromium
- name: Run Playwright tests
run: pnpm exec playwright test --shard=${{ matrix.shardIndex }}/${{ matrix.shardTotal }}
- uses: actions/upload-artifact@v4
if: always()
with:
name: playwright-report-${{ matrix.shardIndex }}
path: playwright-report/
retention-days: 30
merge:
runs-on: ubuntu-latest
needs: shard
steps:
- name: Merge Artifacts
uses: actions/upload-artifact/merge@v4
with:
name: all-files
pattern: playwright-report-*