Skip to content

CI: run only the jobs a change needs (site, docs, specs, plugins, code) - #87

Merged
tavobarrientos merged 1 commit into
mainfrom
ci-path-scoped-jobs
Dec 5, 2026
Merged

tavobarrientos merged 1 commit into
mainfrom
ci-path-scoped-jobs

Conversation

@tavobarrientos

Copy link
Copy Markdown
Member

CI runs only what a change needs. A first changes job sorts the changed files into groups (scripts/ci-changes.mjs), and each job runs only for its group.

What changed What runs
site/ (and src/prompts/, which the site renders) the docs-sync check and the site build
docs/, README.md, root Markdown, public/, LICENSE the docs-sync check and the tests that read those files (43 files)
specs/, .amby/, AGENTS.md, CLAUDE.md build, sync --check, analyze and the tests that read those files (133 files)
plugins/<name>/ that plugin's build and tests
anything else (source, tests, scripts, workflows, package.json) the full Linux/macOS/Windows matrix, as before
  • Docs and specs still run the tests that read their files: about 40 tests pin README and docs content, so skipping them would let a docs-only PR break main. The test lists are chosen at run time by what each test reads, so they stay current.
  • When code changed, the full matrix already covers docs, specs and plugins, so those light jobs are skipped. The site build still runs if the site changed.
  • A branch with no usable base (a new branch push) runs everything.
  • ci-ok fails when any job that ran failed or was cancelled. No check is required on main today, so skipped jobs never block a merge; if one becomes required, require ci-ok.
  • specs.yml is folded into ci.yml (it ran the full suite for a specs-only change).
  • test/release/workflows.test.ts checks the new layout; 034:FR-007 (Node 22 on three systems, Node 20 only as the version-message check) still holds. The classifier has its own test.

Checks

…he full matrix; site builds the site; docs, README and root Markdown run the docs-sync check and the tests that read them; specs, .amby, AGENTS.md and CLAUDE.md build, run sync --check, analyze and the tests that read them; a plugin runs its own build and tests. specs.yml folded into ci.yml; ci-ok gives one check to require later
@tavobarrientos
tavobarrientos merged commit 2b5de77 into main Dec 5, 2026
9 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant