-
Notifications
You must be signed in to change notification settings - Fork 1.1k
82 lines (71 loc) · 2.24 KB
/
Copy pathe2e.yaml
File metadata and controls
82 lines (71 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
name: E2E
on:
push:
branches:
- main
paths:
- "packages/**"
- "examples/**"
- "e2e/**"
- "scripts/**"
- "firebase.json"
- ".github/workflows/e2e.yaml"
- ".github/workflows/test.yaml"
- "package.json"
- "pnpm-lock.yaml"
- "pnpm-workspace.yaml"
pull_request:
paths:
- "packages/**"
- "examples/**"
- "e2e/**"
- "scripts/**"
- "firebase.json"
- ".github/workflows/e2e.yaml"
- ".github/workflows/test.yaml"
- "package.json"
- "pnpm-lock.yaml"
- "pnpm-workspace.yaml"
permissions:
contents: read
jobs:
ui-e2e:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7.0.0
- name: Setup pnpm
uses: pnpm/action-setup@0ebf47130e4866e96fce0953f49152a61190b271 # v6.0.9
with:
version: 11.9.0
- name: Setup node
uses: actions/setup-node@48b55a011bda9f5d6aeb4c2d9c7362e8dae4041e # v6.4.0
with:
node-version: 24.18.0
cache: pnpm
cache-dependency-path: pnpm-lock.yaml
- name: Install dependencies
run: pnpm install --frozen-lockfile
- name: Resolve Playwright version
id: playwright-version
run: |
version="$(pnpm --filter=e2e exec node -p "require('@playwright/test/package.json').version")"
echo "playwright-version=${version}" >> "$GITHUB_OUTPUT"
- name: Cache Playwright browsers
uses: actions/cache@55cc8345863c7cc4c66a329aec7e433d2d1c52a9 # v6.1.0
with:
path: ~/.cache/ms-playwright
key: playwright-${{ runner.os }}-${{ steps.playwright-version.outputs.playwright-version }}
- name: Install Playwright browsers
run: pnpm --filter=e2e exec playwright install --with-deps chromium
- name: Run UI e2e smoke
run: pnpm test:e2e
- name: Upload Playwright report and coverage
if: always()
uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7.0.1
with:
name: e2e-artifacts
path: |
e2e/playwright-report/
e2e/coverage-report/
if-no-files-found: ignore