Files
go-cuckoo/.gitea/workflows/ci.yml
M.V. Hutz e712c7ad79
All checks were successful
CI / Lint Makefile (pull_request) Successful in 22s
CI / Go Lint (pull_request) Successful in 16s
CI / Unit Tests (pull_request) Successful in 12s
CI / Mutation Tests (pull_request) Successful in 36s
CI / Fuzz Tests (pull_request) Successful in 55s
ci: add lint makefile job
Currently, there is no CI job to lint the Makefile. This adds one.
2026-03-18 20:19:27 -04:00

83 lines
1.6 KiB
YAML

name: CI
on:
push:
branches: [main]
pull_request:
jobs:
lint-go:
name: Go 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
lint-makefile:
name: Lint Makefile
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/checkmake/checkmake/cmd/checkmake@latest
- name: Run mutation tests
run: make lint-makefile
test-unit:
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: make test-unit
test-fuzz:
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
test-mutation:
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