GATEWAYS-4306: exporting metrics for conntrack per zone #44
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: Go | |
| on: | |
| push: | |
| branches: [ master ] | |
| pull_request: | |
| branches: [ master ] | |
| jobs: | |
| build: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v2 | |
| - name: Set up Go | |
| uses: actions/setup-go@v6 | |
| with: | |
| go-version: 1.25 | |
| - name: Install tooling | |
| run: | | |
| # Install analysis tools. staticcheck @latest for Go 1.24 compatibility. | |
| go install honnef.co/go/tools/cmd/staticcheck@latest | |
| # golint is deprecated; keep temporarily (will remove in follow-up) | |
| go install golang.org/x/lint/golint@latest || echo "golint install failed (deprecated)" | |
| echo "$(go env GOPATH)/bin" >> "$GITHUB_PATH" | |
| - name: Build | |
| run: go build -v -tags=gofuzz ./... | |
| - name: vet | |
| run: go vet ./... | |
| - name: staticcheck | |
| run: staticcheck ./... | |
| - name: lint | |
| run: golint -set_exit_status ./cmd/... ./internal/... | |
| - name: Test | |
| run: go test -v -race ./... |