Files
go-cuckoo/.gitea/workflows/ci.yml
M.V. Hutz 5c019baa78
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
refactor: use make in CI, pull module in make docs
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`.
2026-03-18 19:29:01 -04:00

67 lines
1.3 KiB
YAML

name: CI
on:
push:
branches: [main]
pull_request:
jobs:
lint:
name: Golang Lint
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-go@v5
with:
go-version-file: go.mod
- name: Check go mod tidy
run: go mod tidy && git diff --exit-code go.mod go.sum
- uses: golangci/golangci-lint-action@v7
with:
version: latest
unit-test:
name: Unit Tests
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-go@v5
with:
go-version-file: go.mod
- name: Run unit tests
run: name test-unit
fuzz-test:
name: Fuzz Tests
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-go@v5
with:
go-version-file: go.mod
- name: Run fuzz tests
run: make test-fuzz
mutation-test:
name: Mutation Tests
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-go@v5
with:
go-version-file: go.mod
- name: Install gremlins
run: go install github.com/go-gremlins/gremlins/cmd/gremlins@latest
- name: Run mutation tests
run: make test-mutation