-
Notifications
You must be signed in to change notification settings - Fork 5
100 lines (83 loc) · 2.31 KB
/
ci.yml
File metadata and controls
100 lines (83 loc) · 2.31 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
100
name: CI
on:
pull_request:
push:
branches:
- main
permissions:
contents: read
concurrency:
group: quality-${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
checks:
name: ${{ matrix.name }}
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
include:
- name: Lint
command: pnpm run lint
- name: Typecheck
command: pnpm run typecheck
- name: Test
command: pnpm run test
- name: Test (integration)
command: pnpm run test:integration
steps:
- name: Checkout
uses: actions/checkout@v6
- name: Install pnpm
uses: pnpm/action-setup@v4
- name: Setup Node.js
uses: actions/setup-node@v6
with:
node-version: 22
cache: pnpm
- name: Install dependencies
run: pnpm install --frozen-lockfile
- name: Run ${{ matrix.name }}
run: ${{ matrix.command }}
e2e:
name: E2E (${{ matrix.platform }})
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
include:
- platform: macos
os: macos-latest
command: pnpm run test:e2e:macos
- platform: windows
os: windows-latest
command: pnpm run test:e2e:windows
- platform: linux
os: ubuntu-latest
command: pnpm run test:e2e:linux
steps:
- name: Checkout
uses: actions/checkout@v6
- name: Install pnpm
uses: pnpm/action-setup@v4
- name: Setup Node.js
uses: actions/setup-node@v6
with:
node-version: 22
cache: pnpm
- name: Install dependencies
run: pnpm install --frozen-lockfile
- name: Build app
run: pnpm run build
- name: Run E2E (${{ matrix.platform }})
run: ${{ matrix.platform == 'linux' && format('xvfb-run --auto-servernum {0}', matrix.command) || matrix.command }}
- name: Upload Playwright failure artifacts
if: failure()
uses: actions/upload-artifact@v4
with:
name: playwright-${{ matrix.platform }}-failure
path: |
test-results/
playwright-report/
retention-days: 7
if-no-files-found: ignore