name: Test on: push: branches: [main] pull_request: jobs: test: runs-on: ubuntu-latest steps: - uses: actions/checkout@v4.1.1 - uses: actions/setup-go@v5 with: go-version: '1.22' # The runner has no actions/cache backend; leaving this on hangs the step. cache: false - name: gofmt run: test -z "$(gofmt -l .)" || { gofmt -l .; exit 1; } - run: go vet ./... - run: go test -race -cover ./...