Add make check target and CI workflow #36

Open
clawbot wants to merge 5 commits from add-make-check into next
Collaborator

Adds a make check target that verifies formatting (gofmt), linting (golangci-lint), and tests (go test -race) without modifying files.

Also adds .gitea/workflows/check.yml CI workflow that runs on pushes and PRs to main and next.

make check passes cleanly on current next branch.

Adds a `make check` target that verifies formatting (gofmt), linting (golangci-lint), and tests (go test -race) without modifying files. Also adds `.gitea/workflows/check.yml` CI workflow that runs on pushes and PRs to main and next. `make check` passes cleanly on current next branch.
clawbot added the
merge-ready
label 2026-02-20 11:54:22 +01:00
sneak was assigned by clawbot 2026-02-20 11:54:22 +01:00
clawbot added 2 commits 2026-02-20 11:54:22 +01:00
Author
Collaborator

Pinned CI action references to commit SHAs for security (tags are mutable and an RCE vector):

  • actions/checkout@v4actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5
  • actions/setup-go@v5actions/setup-go@40f1582b2485089dde7abd97c1529aa768e1baff
Pinned CI action references to commit SHAs for security (tags are mutable and an RCE vector): - `actions/checkout@v4` → `actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5` - `actions/setup-go@v5` → `actions/setup-go@40f1582b2485089dde7abd97c1529aa768e1baff`
clawbot added 1 commit 2026-02-20 11:58:29 +01:00
clawbot added 1 commit 2026-02-20 12:11:02 +01:00
sneak added 1 commit 2026-02-20 12:15:29 +01:00
Owner

“make check” should have check-fmt and lint and test as prereqs and each should be its own makefile target.

“make check” should have check-fmt and lint and test as prereqs and each should be its own makefile target.
clawbot force-pushed add-make-check from 5609365e07 to ae0e96eba3 2026-02-20 12:17:41 +01:00 Compare
Author
Collaborator

Restructured Makefile per review feedback:

  • make check-fmt — format checking (gofmt)
  • make lint — golangci-lint
  • make test — runs tests
  • make check — depends on check-fmt, lint, test (runs all three)

All checks pass:

==> Checking formatting...
==> Running linter...
==> Running tests...
PASS ok sneak.berlin/go/mfer/mfer 8.619s
Restructured Makefile per review feedback: - `make check-fmt` — format checking (gofmt) - `make lint` — golangci-lint - `make test` — runs tests - `make check` — depends on check-fmt, lint, test (runs all three) All checks pass: ``` ==> Checking formatting... ==> Running linter... ==> Running tests... PASS ok sneak.berlin/go/mfer/mfer 8.619s ```
This pull request can be merged automatically.
You are not authorized to merge this pull request.

Checkout

From your project repository, check out a new branch and test the changes.
git fetch -u origin add-make-check:add-make-check
git checkout add-make-check
Sign in to join this conversation.
No description provided.