Add Retries and sanity checks. #17
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: ci | |
| on: | |
| push: | |
| branches: [main] | |
| pull_request: | |
| jobs: | |
| build-test: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: actions/setup-go@v5 | |
| with: | |
| go-version: "1.25" | |
| cache: true | |
| - name: Verify modules are tidy | |
| run: | | |
| go mod tidy | |
| git diff --exit-code go.mod go.sum | |
| - name: Vet | |
| run: go vet ./... | |
| - name: Test | |
| run: go test ./... -race -count=1 | |
| - name: Build | |
| run: go build ./... | |
| lint: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: actions/setup-go@v5 | |
| with: | |
| go-version: "1.25" | |
| cache: true | |
| - uses: golangci/golangci-lint-action@v8 | |
| with: | |
| # v2.4.0+ ships binaries built with Go 1.25; required because go.mod | |
| # targets go 1.25.x (older golangci-lint refuses to run). | |
| version: v2.12.2 |