fix(api): preserve metric even we don't have tags #4511
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
| on: | |
| pull_request: | |
| branches: | |
| - master | |
| paths: | |
| - '**.go' | |
| - 'go.mod' | |
| - 'go.sum' | |
| jobs: | |
| staticcheck: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v5 | |
| with: | |
| fetch-depth: 1 | |
| - uses: actions/setup-go@v6 | |
| with: | |
| go-version: 1.24.x | |
| cache: true | |
| - uses: dominikh/[email protected] | |
| with: | |
| install-go: false # Go is already installed by setup-go | |
| test: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v5 | |
| with: | |
| fetch-depth: 1 | |
| - uses: actions/setup-go@v6 | |
| with: | |
| go-version: 1.24.x | |
| cache: true | |
| - run: go test -v -race -parallel 8 ./... |