Files
go-cuckoo/.gitea/workflows/ci.yml
T
mvhutz 84f8c31d92
CI / Check PR Title (pull_request) Successful in 44s
CI / Makefile Lint (pull_request) Successful in 1m15s
CI / Markdown Lint (pull_request) Successful in 47s
CI / Unit Tests (pull_request) Successful in 1m15s
CI / Go Lint (pull_request) Successful in 3m39s
CI / Fuzz Tests (pull_request) Successful in 2m13s
CI / Mutation Tests (pull_request) Successful in 1m23s
fix: bumped revive, required version of tablewriter that was incompatible with checkmake
2026-07-03 19:49:28 -04:00

97 lines
2.0 KiB
YAML

name: CI
on:
push:
branches: [main]
pull_request:
jobs:
check-pr-title:
name: Check PR Title
runs-on: ubuntu-latest
if: github.event_name == 'pull_request'
env:
TITLE: ${{ gitea.event.pull_request.title }}
steps:
- run: |
if ! echo "$TITLE" | grep -qE '^(WIP: )?(feat|fix|docs|chore|ci|test|refactor|perf|build|style|revert)(\(.+\))?(!)?: .+'; then
echo "::error::Pull Request title must follow conventional commits"
exit 1
fi
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
- name: Run linter
run: make lint-go
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: 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: Run mutation tests
run: make test-mutation