colibri had no CI, so a non-compiling main slipped through (the build-break PR
#23 had to fix) and the markdown gate from #22 was honor-system only.
- .forgejo/workflows/ci.yml: runs on push-to-main + PRs. Two jobs — rust
(cargo fmt --check, clippy -D warnings, cargo test --workspace) and markdown
(./scripts/check-format.sh).
- scripts/ci-checks.sh: same gates in one script, runnable locally before
pushing (the workflow and humans share it).
Validated: scripts/ci-checks.sh passes end-to-end on this branch (exit 0).
NOTE: requires a registered Forgejo Actions runner with an `ubuntu-latest`
label that can pull the rust/node images. Adjust runs-on to match the runner.
Stacked on `all-checks-green` (the fmt fix) so the first CI run is green; merge
that PR first.
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
`cargo fmt --check` was failing on main in two spots:
- crates/colibri-client/src/bin/colibri.rs (register-skill error arm)
- crates/colibri-contracts/tests/golden.rs (USB_INV const)
Ran `cargo fmt` to resolve them. No behavior change. With this, the whole
project is green: fmt, clippy (-D warnings), tests (workspace), and the markdown
gate — so the CI workflow (separate PR) lands green on arrival.
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>