-
Notifications
You must be signed in to change notification settings - Fork 333
48 lines (38 loc) · 1.12 KB
/
Copy pathtest-e2e.yml
File metadata and controls
48 lines (38 loc) · 1.12 KB
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: Test E2E
on:
push:
branches: [main]
pull_request:
branches: [main]
permissions:
contents: read
jobs:
test-e2e:
runs-on: ubuntu-latest
timeout-minutes: 30
strategy:
fail-fast: false
matrix:
shardIndex: [1, 2, 3, 4]
shardTotal: [4]
steps:
- name: Checkout
uses: actions/checkout@v6
- name: Install pnpm
uses: pnpm/action-setup@v6
- name: Setup Node.js
uses: actions/setup-node@v6
with:
node-version: 22
cache: pnpm
- name: Install dependencies
run: pnpm install
- name: Install Playwright browsers
run: pnpm --filter react-grab exec playwright install chromium --with-deps
- name: Build
run: pnpm build
# @perf scenarios run in their own workflow (test-perf.yml) on a
# dedicated runner so multi-worker contention doesn't pollute their
# timing measurements. Exclude them here.
- name: Run E2E tests
run: pnpm --filter react-grab exec playwright test --shard=${{ matrix.shardIndex }}/${{ matrix.shardTotal }} --grep-invert @perf