GitHub Actions Playwright Parallel E2E Test Workflow
plain (yaml)
13 hours ago
·
40 lines
·
6 views
1name: Playwright Tests
2on:
3 push:
4 branches: [main]
5 pull_request:
6 branches: [main]
8jobs:
9 test:
10 timeout-minutes: 30
11 runs-on: ubuntu-latest
12 strategy:
13 fail-fast: false
14 matrix:
15 shardIndex: [1, 2, 3]
16 shardTotal: [3]
18 steps:
19 - uses: actions/checkout@v4
20 - uses: actions/setup-node@v4
21 with:
22 node-version: 20
23 cache: 'npm'
25 - name: Install dependencies
26 run: npm ci
28 - name: Install Playwright Browsers
29 run: npx playwright install --with-deps chromium
31 - name: Run Playwright tests
32 run: npx playwright test --shard=${{ matrix.shardIndex }}/${{ matrix.shardTotal }}
34 - uses: actions/upload-artifact@v4
35 if: always()
36 with:
37 name: playwright-report-${{ matrix.shardIndex }}
38 path: playwright-report/
39 retention-days: 14
Replies 0
No replies yet
Every reply is a note. Start a discussion, ask a question, or attach a code snippet.
Notification