-
Notifications
You must be signed in to change notification settings - Fork 92
99 lines (82 loc) · 2.24 KB
/
Copy pathtests.yml
File metadata and controls
99 lines (82 loc) · 2.24 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
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
name: "CI"
on:
[push, pull_request]
permissions:
contents: read
jobs:
test:
strategy:
fail-fast: false
matrix:
node-version: ['22', '24']
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v6
- uses: actions/setup-node@v6
with:
node-version: ${{ matrix.node-version }}
cache: 'npm'
- run: npm ci
- run: npm run test
env:
TZ: "Europe/Prague"
playwright-e2e:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
node-version: ['22', '24']
shardIndex: [1, 2]
shardTotal: [2]
defaults:
run:
working-directory: e2e/client
steps:
- uses: actions/checkout@v6
- uses: actions/setup-node@v6
with:
node-version: ${{ matrix.node-version }}
cache: 'npm'
- name: Setup E2E Environment
uses: ./.github/actions/setup-e2e
- name: Install Playwright Browsers
run: npx playwright install --with-deps
- name: Run Playwright tests
run: npx playwright test --shard=${{ matrix.shardIndex }}/${{ matrix.shardTotal }}
- name: Upload blob report to Artifacts
if: ${{ !cancelled() }}
uses: actions/upload-artifact@v7
with:
name: blob-report-${{ matrix.shardIndex }}
path: e2e/client/blob-report
retention-days: 1
- name: Server Logs
if: ${{ failure() }}
run: docker compose logs server
working-directory: e2e/server
merge-playwright-reports:
if: ${{ !cancelled() }}
needs: [playwright-e2e]
runs-on: ubuntu-latest
defaults:
run:
working-directory: e2e/client
steps:
- uses: actions/checkout@v6
- uses: actions/setup-node@v6
with:
node-version: '22'
- name: Download blob reports from Artifacts
uses: actions/download-artifact@v8
with:
path: e2e/client/all-blob-reports
pattern: blob-report-*
merge-multiple: true
- name: Merge into HTML Report
run: npx playwright merge-reports --reporter html ./all-blob-reports
- name: Upload HTML report
uses: actions/upload-artifact@v7
with:
name: playwright-html-report
path: e2e/client/playwright-report
retention-days: 14