Repository navigation
ci: run the test suites on pull requests - #8
Merged
Merged
Conversation
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>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What changed
Adds
.github/workflows/test.yml, which runs both test suites on every pullrequest, on pushes to
main, and on demand.Why
Pull requests had no automated check.
pages.ymlonly deploys onmain, sothe 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-policybecausehooks/_dispatchresolves each hook from that path — which is also how theREADME tells people to install.
How to verify
HOMEwithenv -i: install, hook tests(10 passed), installer tests (18 passed), exit 0.
actions/checkout@v7is the current release.Testscheck.Generated by Mistral Vibe.
Co-Authored-By: Mistral Vibe vibe@mistral.ai