Use empty string as the fault metric method label for HTTP requests. #1446
Workflow file for this run
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 test | |
| on: | |
| push: | |
| branches: [ master ] | |
| pull_request: | |
| branches: [ master ] | |
| jobs: | |
| lint-and-test: | |
| runs-on: ubuntu-latest | |
| strategy: | |
| matrix: | |
| go-version: | |
| - "1.23" | |
| - "1.24" | |
| container: | |
| image: golang:${{ matrix.go-version }} | |
| steps: | |
| - uses: actions/checkout@v3 | |
| - name: Workaround Git Security Warning | |
| run: | | |
| # Workaround a bug in github actions: | |
| # https://github.com/actions/runner-images/issues/6775. | |
| git config --global --add safe.directory "$GITHUB_WORKSPACE" | |
| - name: Install dependencies | |
| run: | | |
| go mod download | |
| go install honnef.co/go/tools/cmd/staticcheck@latest | |
| staticcheck --version | |
| - name: Lint | |
| run: | | |
| sh ./scripts/linters.sh | |
| - name: Test | |
| run: | | |
| go test ./... -race | |
| - name: Go modules check | |
| run: | | |
| go mod tidy | |
| git status | |
| git diff | |
| test -z "$(git status --porcelain)" |