- Makefile targets: build, test, race, fmt-check, vet, vendor-check, lint, ci - ci.yml runs fmt-check, vet, vendor-check, build and race tests; also on rework/** branches and callable from release.yml - gofmt the three files that were not formatted Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
37 lines
595 B
YAML
37 lines
595 B
YAML
name: CI
|
|
|
|
on:
|
|
push:
|
|
branches:
|
|
- main
|
|
- "rework/**"
|
|
pull_request:
|
|
workflow_call:
|
|
|
|
jobs:
|
|
test:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- name: Checkout
|
|
uses: actions/checkout@v4
|
|
|
|
- name: Setup Go
|
|
uses: actions/setup-go@v5
|
|
with:
|
|
go-version-file: go.mod
|
|
cache: true
|
|
|
|
- name: gofmt
|
|
run: make fmt-check
|
|
|
|
- name: go vet
|
|
run: make vet
|
|
|
|
- name: vendor is up to date
|
|
run: make vendor-check
|
|
|
|
- name: Build
|
|
run: make build
|
|
|
|
- name: Test (race)
|
|
run: make race
|