How-to Guides
How to run the e2e tests
Drive the full CLI lifecycle against real archives with scripts/e2e.sh.
You want the strongest single check that the CLI works end to end — not unit tests, but the real lifecycle with real archives.
Run it
mise run e2eor directly:
sh scripts/e2e.shEverything happens inside a temp directory; the repository is only read
from. The script exits 0 on success and prints one e2e: line per stage.
What it verifies, stage by stage
- Build — compiles
./cmd/agore-skillwith-trimpathinto the temp directory. - Help —
agore-skill --helpruns. - init —
init --yescreatesagore.yaml(and, per the init lifecycle: ensures adist/line in.gitignoreand generates theSkill LifecycleGitHub Actions workflow unless--no-ci). - create — scaffolds
skills/demo-skillfrom theprogressivetemplate with a "Use when…" description. - inspect — the report renders without crashing.
- lint --strict — exits
0; the generated skill is clean. - release --snapshot --clean — produces the four artifacts.
- Archive contents —
demo-skill/SKILL.mdanddemo-skill/references/guide.mdexist in both the.tar.gzand the.zip. - Checksums —
sha256sum -caccepts the checksums file (usingshasum -a 256 -con macOS). - SKILL.md untouched — the file hash is identical before and after the release.
- No leakage —
dist/never appears in the repository.
Run it from CI locally
e2e is part of mise run check, and CI runs it in the check chain as
well — but inside act runs, act copies the
checkout, so generated files never touch your repository either way.
When it fails
- A failing stage prints the command output above the
e2e:failure line — start there. - Checksum failures usually mean archive content changed (exclusion patterns, file ordering) — see Release format reference for the expected layout.
SKILL.md changed during releaseis a hard contract violation; the release path must never write into the skill directory.
Related
- The e2e script itself:
scripts/e2e.shin the repository. - What
mise run e2emaps to: mise tasks reference