Skip to content

Record your screen, ship a demo. Free and open-source, GPU-accelerated, no watermarks, no subscriptions. Windows, macOS, Linux. Actively maintained.

ci: run CI on feat/ai-edition, and gate the docs tree

Etienne Lescot6a945b1b7b03
diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml
index 3c65e41b6..95d9d0c22 100644
--- a/.github/workflows/ci.yml
+++ b/.github/workflows/ci.yml
@@ -1,10 +1,13 @@
name: CI
+# feat/ai-edition is a long-lived integration branch that PRs land on for
+# months at a time. Without it listed here, every one of those PRs merged with
+# no lint, no typecheck, no tests and no PR-title check.
on:
pull_request:
- branches: [main]
+ branches: [main, feat/ai-edition]
push:
- branches: [main]
+ branches: [main, feat/ai-edition]
jobs:
lint:
@@ -23,6 +26,19 @@ jobs:
- uses: ./.github/actions/setup
- run: npx tsc --noEmit
+ docs:
+ name: Docs
+ runs-on: ubuntu-latest
+ steps:
+ - uses: actions/checkout@v4
+ # No ./.github/actions/setup: check-docs.mjs imports only node builtins,
+ # so npm ci would be a minute of install for nothing. Node 22 is here for
+ # import.meta.dirname (needs >= 20.11).
+ - uses: actions/setup-node@v4
+ with:
+ node-version: 22
+ - run: npm run docs:check
+
test:
name: Test
runs-on: ubuntu-latest
diff --git a/tests/e2e/roadmap-coverage.spec.ts b/tests/e2e/roadmap-coverage.spec.ts
index 1fc16674e..300b1ec69 100644
--- a/tests/e2e/roadmap-coverage.spec.ts
+++ b/tests/e2e/roadmap-coverage.spec.ts
@@ -1,13 +1,10 @@
-// ponytail: each test seeds the browser-shim with a known project, opens the
-// editor, and asserts on observable behavior (data-* attributes, visible text,
-// console errors) rather than on the DOM shape.
-//
-// STALE: these were written against the pre-v4 editor shell and still target
-// `data-testid="timeline-pane"` and the old right-panel help popover, neither of
-// which the v4 shell renders. They are kept only as a record of the behaviours
-// worth covering; rewrite them against `src/components/ai-edition/v4/` before
-// trusting a pass. What the suite is checking is described in
-// `technical-documentation/testing/manual-e2e-checklist.md`.
+// ponytail: agentic-style roadmap coverage. One test per ✅ row in
+// `docs/architecture/ai-edition-roadmap.md` (the ones with specs in
+// `specs/`). Each test seeds the browser-shim with a known project,
+// opens the editor, and asserts on observable behavior (data-*
+// attributes, visible text, console errors). Fails = the roadmap's
+// ✅ is a false claim. The agent would re-snapshot the DOM and patch
+// brittle selectors; we go straight to the contract.
import { expect, type Page, test } from "@playwright/test";
const EDITOR_URL = "http://localhost:5173/?windowType=editor";