Bump the opentelemetry group with 7 updates #243
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: | |
| branches: [main] | |
| permissions: | |
| contents: read | |
| jobs: | |
| build: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v7 | |
| - name: Set up Go | |
| uses: actions/setup-go@v6 | |
| with: | |
| go-version: "1.26.4" | |
| cache-dependency-path: go.sum | |
| - name: Download dependencies | |
| run: go mod download | |
| - name: Run golangci-lint | |
| uses: golangci/golangci-lint-action@v9 | |
| with: | |
| version: v2.12 | |
| args: --timeout=5m | |
| - name: Check copyright headers | |
| run: ./scripts/check-copyright-header.sh | |
| - name: Verify go.mod and go.sum | |
| run: | | |
| go mod tidy | |
| git diff --exit-code go.mod go.sum | |
| - name: Run tests | |
| run: go test ./... | |
| # Race detector on all packages (watcher, pipeline, integration, metrics, state). | |
| # No exclusions: go test -race ./... passes locally on Go 1.26+. | |
| - name: Run tests with race detector | |
| run: go test -race ./... | |
| - name: Check test coverage | |
| run: ./scripts/check-coverage.sh | |
| - name: Run govulncheck | |
| run: go run golang.org/x/vuln/cmd/govulncheck@latest ./... | |
| - name: Build log-forwarder | |
| run: go build -o bin/log-forwarder ./cmd/log-forwarder | |
| - name: Build custom example | |
| run: go build -o bin/log-forwarder-custom ./examples/custom |