Skip to content

chore: add make check target that mirrors CI pipeline#641

Open
isaacschepp wants to merge 1 commit intomainfrom
chore/make-check-target
Open

chore: add make check target that mirrors CI pipeline#641
isaacschepp wants to merge 1 commit intomainfrom
chore/make-check-target

Conversation

@isaacschepp
Copy link
Copy Markdown
Collaborator

Summary

Add a make check target that runs all locally-reproducible CI checks in one command, giving contributors confidence a PR will pass CI before pushing.

check: tidy-check lint test check-schemas check-links validate-examples

Also includes the prerequisite targets that were in separate PRs:

  • tidy-checkgo mod tidy -diff (mirrors CI validate-mod job)
  • validate-examples — builds CLI and validates all example archives (mirrors CI validate-examples job)

Fixes #445
Closes #626
Closes #627

Supersedes PRs #636 and #637 (their changes are included here).

CI checks NOT in make check (by design)

Check Reason
govulncheck/gosec Separate make security target (#438) — requires external tools
npm audit CI-only — no Go project includes this in make check
PR title lint GitHub Action only, not runnable locally
Dependency review GitHub Action only, not runnable locally

Test plan

  • Verify make check appears in make help
  • Verify make tidy-check runs go mod tidy -diff successfully
  • Verify make validate-examples builds CLI and validates all 8 example directories
  • Verify make check runs all 6 sub-targets in order
  • Verify failure in any sub-target stops the check

Add a `make check` target that runs all locally-reproducible CI checks
in a single command: tidy-check, lint, test, check-schemas, check-links,
and validate-examples.

Also adds the prerequisite targets `tidy-check` (go mod tidy -diff) and
`validate-examples` (build CLI + validate all example archives) that
were previously in separate PRs (#637, #636).

Fixes #445
Closes #626
Closes #627
@isaacschepp isaacschepp added the tooling Infrastructure, workflow, and developer tools label Apr 2, 2026
Copilot AI review requested due to automatic review settings April 2, 2026 22:56
@cloudflare-workers-and-pages
Copy link
Copy Markdown

Deploying genealogix with  Cloudflare Pages  Cloudflare Pages

Latest commit: abc07eb
Status: ✅  Deploy successful!
Preview URL: https://0dbcc516.genealogix.pages.dev
Branch Preview URL: https://chore-make-check-target.genealogix.pages.dev

View logs

Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Adds a new top-level make check entrypoint intended to run locally reproducible CI-style verification in one command, by composing existing and newly added Make targets.

Changes:

  • Introduces check as an aggregate target that runs module tidiness, linting, tests, schema checks, link checks, and example validation.
  • Adds tidy-check (go mod tidy -diff) to mirror CI’s module tidiness verification.
  • Adds validate-examples to build the CLI and run glx validate across all docs/examples/*/ directories.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

tooling Infrastructure, workflow, and developer tools

Projects

None yet

2 participants