-
Notifications
You must be signed in to change notification settings - Fork 0
55 lines (45 loc) · 1.65 KB
/
ci.yml
File metadata and controls
55 lines (45 loc) · 1.65 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
# CI workflow — runs on every PR and push to main.
# Matrix: ubuntu × macos × windows, Node 20 and 22.
# Only one build lane (build:bundle) to keep runtime bounded.
name: CI
on:
pull_request:
push:
branches:
- main
jobs:
ci:
name: "${{ matrix.os }} / node ${{ matrix.node }}"
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
# Cross-platform smoke: Linux is primary; macOS and Windows catch
# platform-specific path/binary issues early.
# Node 20 left active LTS in April 2026 — test 22 (active LTS)
# and 24 (current). Drop 20 to halve matrix cost.
os: [ubuntu-latest, macos-latest, windows-latest]
node: ["22.x", "24.x"]
steps:
- uses: actions/checkout@v5
- name: Setup Node ${{ matrix.node }}
uses: actions/setup-node@v5
with:
node-version: ${{ matrix.node }}
cache: npm
- name: Install dependencies
run: npm ci
# Integration tests exercise real Playwright flows; install the
# bundled chromium so vitest.config.js#detectBrowserSupport() returns
# true and test/integration/** is included (otherwise the filter hits
# zero files and vitest exits 1).
- name: Install Playwright chromium
run: npx playwright install --with-deps chromium
- name: Unit tests
run: npm run test:unit
- name: Integration tests
run: npm run test:integration
# Build bundle only (not SEA) — keeps CI fast and avoids platform
# binary signing requirements that belong in build-artifacts.yml.
- name: Build bundle
run: npm run build:bundle