-
Notifications
You must be signed in to change notification settings - Fork 0
78 lines (75 loc) · 2.13 KB
/
e2e.yml
File metadata and controls
78 lines (75 loc) · 2.13 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
name: E2E Tests
on:
push:
branches: [main, develop]
schedule:
- cron: '0 2 * * *'
jobs:
e2e-main:
if: github.event_name == 'push'
name: E2E (chromium)
runs-on: ubuntu-latest
timeout-minutes: 30
env:
E2E_COVERAGE: '1'
steps:
- uses: actions/checkout@v6
- name: Setup Node.js
uses: actions/setup-node@v6
with:
node-version: 20
cache: 'npm'
- name: Install dependencies
run: npm ci
- name: Install Playwright Browsers
run: npx playwright install --with-deps chromium
- name: Build packages
run: npm run build
- name: Run E2E tests
run: npx playwright test --project=chromium
- name: Merge E2E coverage
run: node scripts/merge-e2e-coverage.js
- name: Upload E2E coverage to Codecov
uses: codecov/codecov-action@v5
with:
token: ${{ secrets.CODECOV_TOKEN }}
files: ./coverage-e2e/lcov.info
flags: e2e
fail_ci_if_error: false
- name: Upload report
if: always()
uses: actions/upload-artifact@v6
with:
name: playwright-report-chromium
path: playwright-report/
retention-days: 7
e2e-nightly:
if: github.event_name == 'schedule'
name: E2E (${{ matrix.browser }})
runs-on: ubuntu-latest
timeout-minutes: 45
strategy:
matrix:
browser: [chromium, firefox, webkit]
steps:
- uses: actions/checkout@v6
- name: Setup Node.js
uses: actions/setup-node@v6
with:
node-version: 20
cache: 'npm'
- name: Install dependencies
run: npm ci
- name: Install Playwright Browsers
run: npx playwright install --with-deps ${{ matrix.browser }}
- name: Build packages
run: npm run build
- name: Run E2E tests
run: npx playwright test --project=${{ matrix.browser }}
- name: Upload report
if: always()
uses: actions/upload-artifact@v6
with:
name: playwright-report-${{ matrix.browser }}
path: playwright-report/
retention-days: 7