Files
Aleks Petrov 2c2317187d ci: test+lint workflow, goreleaser release pipeline, Homebrew cask
- ci.yml: gofmt/vet/build/test -race + golangci-lint on push and PR
- release.yml: goreleaser on v* tags (tests gate the release)
- goreleaser: CGO-free darwin/linux amd64+arm64, version ldflags,
  conventional-commit changelog, cask published to qf-studio/homebrew-tap
  (quarantine hook for the unsigned binary)
2026-07-07 20:52:22 +02:00

32 lines
622 B
YAML

name: ci
on:
push:
branches: [main]
pull_request:
jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-go@v5
with:
go-version-file: go.mod
- name: gofmt
run: test -z "$(gofmt -l .)"
- run: go vet ./...
- run: go build ./...
- run: go test -race ./...
lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-go@v5
with:
go-version-file: go.mod
- uses: golangci/golangci-lint-action@v8
with:
version: latest