-
Notifications
You must be signed in to change notification settings - Fork 0
77 lines (73 loc) · 2.65 KB
/
Copy pathci.yml
File metadata and controls
77 lines (73 loc) · 2.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
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
name: CI
on:
pull_request:
push:
branches:
- main
workflow_dispatch:
jobs:
checks:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 22
cache: npm
- run: npm ci
- run: npm run verify:mcp-resources-drift
- run: npm run lint
# Renderer typecheck (tsconfig.web.json) is clean today — BLOCKING so
# renderer type regressions can't land.
- run: npm run typecheck:web
# Main+preload typecheck (tsconfig.node.json) is clean today — BLOCKING so
# main/preload type regressions can't land.
- run: npm run typecheck:node
- run: npm test
# Full vitest suite (node + dom projects). Previously CI only ran the single
# src/main/broker.test.ts file; this now gates the entire suite (19 files / 263 tests).
- run: npx vitest run
- run: npm run build
playwright:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 22
cache: npm
- run: npm ci
- run: npx playwright install --with-deps chromium
# Both configs run `npm run build:web` themselves (via test:fidelity / test:redraw),
# but build once up front so a build break fails fast and is shared by both suites.
- run: npm run build:web
# fidelity GATES: the spec seeds pear-web-initial-tab=agents and selects
# the spawned agent, so terminal runtimes mount in the web-mock build.
# These six specs are the no-duplication / no-loss fence for the
# renderer pipeline — a failure here is a rendering regression.
- run: npx playwright test --config playwright.fidelity.config.ts
# redraw GATES on the drain invariants (drained + finalFrameRendered) —
# the typing-lag / parser-backlog fence. Timing metrics stay informational.
- run: npx playwright test --config playwright.redraw.config.ts
- name: Upload Playwright traces
# always() so traces from any failed Playwright gate are captured.
# No-op when nothing failed.
if: always()
uses: actions/upload-artifact@v4
with:
name: playwright-traces
path: test-results/
retention-days: 7
if-no-files-found: ignore
packaged-mcp-smoke:
runs-on: macos-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 22
cache: npm
- run: npm ci
- run: npm run verify:mcp-resources-drift
- run: npm run dist:mac
- run: npm run verify:mcp-spawn