chore: add check.yml and pre-commit hook recipes #15
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "chore/pre-commit-hooks"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Summary
.forgejo/workflows/check.ymlwith fmt, clippy, build, and workspace unit-test steps targeting the opensuse-base CI runner.dev_imagevariable at the top ofjustfilepinning therust-builder-glibcimage that matches the CI runner toolchain.[group: 'hooks']recipesinstall-hooksandpre-commitmirroringcheck.ymlstep-for-step inside the rust-builder-glibc image; eachdocker runpasses--env SQLX_OFFLINE=trueso sqlx offline-mode is set inside the container (required by the workspace).Test plan
just --listand confirm[hooks]group showsinstall-hooksandpre-commit.just install-hooksin a fresh clone; verify.git/hooks/pre-commitis created and executable.git commit --no-verifyto confirm bypass works.just pre-commiton a clean tree and confirm all four cargo steps pass.Generated with Claude Code