Add make check target and CI workflow (#36)
Some checks failed
check / check (pull_request) Failing after 6s
Some checks failed
check / check (pull_request) Failing after 6s
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. Co-authored-by: clawbot <clawbot@noreply.git.eeqj.de> Reviewed-on: #36 Co-authored-by: clawbot <clawbot@noreply.example.org> Co-committed-by: clawbot <clawbot@noreply.example.org>
This commit was merged in pull request #36.
This commit is contained in:
13
.gitea/workflows/check.yml
Normal file
13
.gitea/workflows/check.yml
Normal file
@@ -0,0 +1,13 @@
|
||||
name: check
|
||||
on:
|
||||
push:
|
||||
branches: [main, next]
|
||||
pull_request:
|
||||
branches: [main, next]
|
||||
jobs:
|
||||
check:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13894f8d5 # v4
|
||||
- name: Build Docker image (runs make check internally)
|
||||
run: docker build .
|
||||
Reference in New Issue
Block a user