-
-
Notifications
You must be signed in to change notification settings - Fork 29
44 lines (39 loc) · 1.07 KB
/
e2e-tests.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
name: Run E2E tests
on:
workflow_call:
jobs:
e2e-tests:
name: ${{matrix.browser}} (${{ matrix.shard }}/${{ matrix.shards }})
strategy:
fail-fast: false
matrix:
browser: [chromium, firefox]
shard: [1, 2, 3, 4, 5, 6]
shards: [6]
runs-on: ubuntu-latest
steps:
-
uses: actions/checkout@v4
-
uses: pnpm/action-setup@v4
-
name: Playwright E2E Tests
run: make e2e-tests-ci browser=${{ matrix.browser }} shard="${{ matrix.shard }}/${{ matrix.shards }}"
-
name: Upload Playwright test results
if: always()
uses: actions/upload-artifact@v4
with:
name: test-results-${{ matrix.browser }}-${{ matrix.shard }}
path: test/e2e/test-results
if-no-files-found: error
e2e-tests-result:
if: always()
runs-on: ubuntu-latest
needs: e2e-tests
steps:
- name: Check aggregated E2E result
if: ${{ needs.e2e-tests.result != 'success' }}
run: |
echo "Some E2E tests failed"
exit 1