-
Notifications
You must be signed in to change notification settings - Fork 2
64 lines (54 loc) · 1.51 KB
/
Copy pathe2e.yml
File metadata and controls
64 lines (54 loc) · 1.51 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
name: E2E
on:
workflow_dispatch:
push:
branches: [main]
paths-ignore:
- '**/*.md'
- 'docs/**'
- 'website/**'
- '.github/ISSUE_TEMPLATE/**'
pull_request:
branches: [main]
paths-ignore:
- '**/*.md'
- 'docs/**'
- 'website/**'
- '.github/ISSUE_TEMPLATE/**'
concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
cancel-in-progress: true
jobs:
e2e:
runs-on: macos-latest
timeout-minutes: 30
steps:
- name: Checkout
uses: actions/checkout@v5
- name: Prepare
uses: ./.github/actions/prepare
- name: Cache Playwright browsers
id: playwright-cache
uses: actions/cache@v5
with:
path: ~/Library/Caches/ms-playwright
key: ${{ runner.os }}-playwright-${{ hashFiles('pnpm-lock.yaml') }}
- name: Install Playwright (Chromium)
if: steps.playwright-cache.outputs.cache-hit != 'true'
run: pnpm exec playwright install chromium
- name: Run E2E tests
run: pnpm test:e2e
- name: Upload Playwright report
if: failure()
uses: actions/upload-artifact@v6
with:
name: playwright-report
path: e2e/playwright-report/
retention-days: 7
- name: Upload test results (traces, videos)
if: failure()
uses: actions/upload-artifact@v6
with:
name: e2e-test-results
path: e2e/test-results/
retention-days: 7