chore: add check workflow and pre-commit recipes #12

Merged
David merged 1 commit from chore/checks-and-pre-commit into main 2026-05-11 00:23:11 +02:00
Owner

Summary

Adds the check.yml workflow + install-hooks / pre-commit recipes per governance/PRE_COMMIT.md. Uses the compose-run pattern against the existing app service in compose.dev.yml; depends on the existing ensure-env recipe.

Changes

  • .forgejo/workflows/check.yml (new): fmt, clippy -D warnings, build --all-targets, test --lib.
  • justfile: install-hooks + pre-commit recipes.

Test plan

  • just install-hooks writes the stub correctly.
  • just pre-commit runs and passes.
  • CI run on the branch passes.
## Summary Adds the `check.yml` workflow + `install-hooks` / `pre-commit` recipes per [governance/PRE_COMMIT.md](https://dev.a8n.run/a8n-tools/governance/src/branch/main/PRE_COMMIT.md). Uses the compose-run pattern against the existing `app` service in `compose.dev.yml`; depends on the existing `ensure-env` recipe. ## Changes - `.forgejo/workflows/check.yml` (new): fmt, clippy `-D warnings`, build `--all-targets`, test `--lib`. - `justfile`: `install-hooks` + `pre-commit` recipes. ## Test plan - [ ] `just install-hooks` writes the stub correctly. - [ ] `just pre-commit` runs and passes. - [ ] CI run on the branch passes.
chore: add check workflow and pre-commit recipes
Some checks failed
Check / fmt + clippy + build + tests (pull_request) Failing after 3s
Create release / Create release from merged PR (pull_request) Has been skipped
b2a16440fb
New .forgejo/workflows/check.yml runs on the opensuse-base CI image and exercises fmt, clippy --all-targets -- -D warnings, build --all-targets, and test --lib. `just install-hooks` writes a stub at .git/hooks/pre-commit that execs `just pre-commit`; the recipe runs the same four cargo invocations inside the `app` service from compose.dev.yml so the toolchain matches CI exactly. Depends on `ensure-env` so a fresh clone seeds .env before docker compose loads it. See governance/PRE_COMMIT.md for the org-wide standard.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
David merged commit 56e8d6aaa4 into main 2026-05-11 00:23:11 +02:00
David deleted branch chore/checks-and-pre-commit 2026-05-11 00:23:12 +02:00
Sign in to join this conversation.
No reviewers
No labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
psa-systems/vervain-server!12
No description provided.