Some checks failed
CI / Makefile Lint (pull_request) Successful in 22s
CI / Go Lint (pull_request) Successful in 25s
CI / Unit Tests (pull_request) Successful in 19s
CI / Markdown Lint (pull_request) Failing after 12s
CI / Fuzz Tests (pull_request) Successful in 51s
CI / Mutation Tests (pull_request) Successful in 1m17s
- Using `make lint-markdown` poses a 'Docker-in-Docker' problem, and the `markdownlint-cli2` container does not have any files that it should. - Use the dedicated `DavidAnson/markdownlint-cli2-action` GitHub action to process the test instead.
91 lines
1.8 KiB
YAML
91 lines
1.8 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: Makefile Lint
|
|
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
|
|
|
|
lint-markdown:
|
|
name: Markdown Lint
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/checkout@v4
|
|
|
|
- uses: DavidAnson/markdownlint-cli2-action@v19
|
|
|
|
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
|