name: CI on: push: branches: [main] pull_request: types: [opened, synchronize, reopened] workflow_dispatch: {} jobs: test: runs-on: ubuntu-latest timeout-minutes: 10 steps: - uses: actions/checkout@v4 - uses: actions/setup-go@v5 with: go-version: "1.26" - name: Build run: go build ./... - name: Vet run: go vet ./... - name: gofmt run: test -z "$(gofmt -l .)" || { gofmt -l .; echo "gofmt needed"; exit 1; } - name: Test (race) run: go test -race ./...