refactor: use make in CI, pull module in make docs
Some checks failed
CI / Unit Tests (pull_request) Failing after 8s
CI / Golang Lint (pull_request) Successful in 1m7s
CI / Fuzz Tests (pull_request) Successful in 1m19s
CI / Mutation Tests (pull_request) Successful in 1m54s

Instead of duplicating test logic in both the CI and the Makefile, I made the CI call the Makefile. Also, updated `make docs` so it dynamically pulls the module name from `go list -m`.
This commit is contained in:
2026-03-18 19:29:01 -04:00
parent e53ff4f50b
commit 5c019baa78
2 changed files with 4 additions and 7 deletions

View File

@@ -34,7 +34,7 @@ jobs:
go-version-file: go.mod
- name: Run unit tests
run: go test ./... -cover -v
run: name test-unit
fuzz-test:
name: Fuzz Tests
@@ -47,10 +47,7 @@ jobs:
go-version-file: go.mod
- name: Run fuzz tests
run: |
for func in $(grep -r --include='*_test.go' -oh 'func Fuzz\w*' . | sed 's/func //'); do
go test ./... -fuzz="^${func}$" -fuzztime=30s
done
run: make test-fuzz
mutation-test:
name: Mutation Tests
@@ -66,4 +63,4 @@ jobs:
run: go install github.com/go-gremlins/gremlins/cmd/gremlins@latest
- name: Run mutation tests
run: gremlins unleash
run: make test-mutation