- 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)
32 lines
622 B
YAML
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
|