gogcli/.github/workflows/ci.yml
2025-12-28 18:43:36 +01:00

37 lines
749 B
YAML

name: ci
on:
push:
pull_request:
jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-go@v5
with:
go-version-file: go.mod
cache: true
- name: Install tools
run: make tools
- name: Format check
run: make fmt-check
- name: Test
run: go test ./...
- name: Lint
run: make lint
darwin-cgo-build:
runs-on: macos-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-go@v5
with:
go-version-file: go.mod
cache: true
- name: Test
run: go test ./...
- name: Build (Keychain / cgo)
run: CGO_ENABLED=1 go build ./cmd/gog