Skip to Content
agore-skill
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 e2e

or directly:

sh scripts/e2e.sh

Everything 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

  1. Build — compiles ./cmd/agore-skill with -trimpath into the temp directory.
  2. Help — agore-skill --help runs.
  3. init — init --yes creates agore.yaml (and, per the init lifecycle: ensures a dist/ line in .gitignore and generates the Skill Lifecycle GitHub Actions workflow unless --no-ci).
  4. create — scaffolds skills/demo-skill from the progressive template with a "Use when…" description.
  5. inspect — the report renders without crashing.
  6. lint --strict — exits 0; the generated skill is clean.
  7. release --snapshot --clean — produces the four artifacts.
  8. Archive contents — demo-skill/SKILL.md and demo-skill/references/guide.md exist in both the .tar.gz and the .zip.
  9. Checksums — sha256sum -c accepts the checksums file (using shasum -a 256 -c on macOS).
  10. SKILL.md untouched — the file hash is identical before and after the release.
  11. 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 release is a hard contract violation; the release path must never write into the skill directory.
  • The e2e script itself: scripts/e2e.sh in the repository.
  • What mise run e2e maps to: mise tasks reference

On this page