Skip to content

ci: run the test suites on pull requests - #8

Merged
koryei merged 1 commit into
mainfrom
ci/run-tests-on-pull-requests
Nov 27, 2026
Merged

koryei merged 1 commit into
mainfrom
ci/run-tests-on-pull-requests

Conversation

@koryei

@koryei koryei commented Nov 27, 2026

Copy link
Copy Markdown
Owner

What changed

Adds .github/workflows/test.yml, which runs both test suites on every pull
request, on pushes to main, and on demand.

Why

Pull requests had no automated check. pages.yml only deploys on main, so
the 28 tests were a local-only guarantee and a PR could merge with them
failing. PR #7 currently shows an empty check rollup for exactly this reason.

How it works

The hook suite commits in a throwaway repo and expects the hooks to fire, so
the installer runs first. It installs from ~/.config/git-policy because
hooks/_dispatch resolves each hook from that path — which is also how the
README tells people to install.

How to verify

  • Ran the three steps in a clean HOME with env -i: install, hook tests
    (10 passed), installer tests (18 passed), exit 0.
  • YAML parses; actions/checkout@v7 is the current release.
  • The workflow itself is the proof: this PR should show a green Tests check.

Generated by Mistral Vibe.
Co-Authored-By: Mistral Vibe vibe@mistral.ai

Pull requests had no automated check: pages.yml only deploys on main,
so the 28 tests were a local-only guarantee and a PR could merge with
them failing. This runs both suites on every pull request and on main.

The hook suite commits in a throwaway repo and expects the hooks to
fire, so the installer runs first. It installs from
~/.config/git-policy because the dispatcher resolves each hook from
that path, which is also how the README tells people to install.

Generated by Mistral Vibe.
Co-Authored-By: Mistral Vibe <vibe@mistral.ai>
@koryei
koryei merged commit a1f2c02 into main Nov 27, 2026
1 check passed
@koryei
koryei deleted the ci/run-tests-on-pull-requests branch November 27, 2026 03:40
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