Repository navigation
57 lines (46 loc) · 1.7 KB
/
Copy pathci.yml
File metadata and controls
57 lines (46 loc) · 1.7 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
# CI — enforces the repo's own verification bar (.roo/rules/rules.md):
# clean `npx tsc --noEmit` + full `npm test` for any src/ change, plus one
# e2e pass (scripts/e2e/run.sh) since the e2e suites exercise real
# spawn/worker flows against a local mock OpenRouter server.
#
# Runs on GitHub-hosted runners (public repo — no self-hosted worker).
# No API key and no network access are needed — the mock server serves the
# entire session, so this is safe to run on any push/PR, including from forks.
name: ci
on:
push:
branches: ["**", "!headlesscode-claims/**"]
pull_request:
workflow_dispatch:
permissions:
contents: read
jobs:
typecheck-test-e2e:
if: github.event.repository.private == false
runs-on: ubuntu-latest
timeout-minutes: 30
steps:
- uses: actions/checkout@v4
with:
persist-credentials: false
- uses: actions/setup-node@v4
with:
node-version: 22
cache: npm
- name: Install dependencies
run: npm ci
# The full test suite includes src/tools/__tests__/browser-action.test.ts,
# which launches a REAL headless Chromium via Playwright — the browser
# binary is a separate download, not part of npm ci.
- name: Install Playwright browser
run: npx playwright install --with-deps chromium
- name: Typecheck
run: npx tsc --noEmit
- name: Code standards (no new violations vs baseline)
run: npm run check-standards
- name: Architecture (no new findings vs baseline)
run: npm run check-architecture
- name: Full test suite
run: npm test
- name: End-to-end (mock OpenRouter, no key)
run: bash scripts/e2e/run.sh