diff options
| author | Denton Gentry <dgentry@tailscale.com> | 2021-01-07 20:26:43 -0800 |
|---|---|---|
| committer | Denton Gentry <denny@geekhold.com> | 2021-01-07 21:34:43 -0800 |
| commit | d12add6e22294ee7819c71c4fa56dc215744f5c2 (patch) | |
| tree | 1ba9912190914c8e714bed03e3eabe750be74f50 | |
| parent | 332759ef731a0d52e14f9691b05e7bbed4833a44 (diff) | |
| download | tailscale-d12add6e22294ee7819c71c4fa56dc215744f5c2.tar.xz tailscale-d12add6e22294ee7819c71c4fa56dc215744f5c2.zip | |
Adjust coverage options.
+ we don't need an exactly accurate count of the number of times each
time ran. Remove -covermode, the default "set" will be fine to just
track whether a given line ran at all.
+ add -benchtime=1x. We only need to run the benchmarks once.
+ -bench=. to match any character.
Signed-off-by: Denton Gentry <dgentry@tailscale.com>
| -rw-r--r-- | .github/workflows/coverage.yml | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/.github/workflows/coverage.yml b/.github/workflows/coverage.yml index 9432c153d..6b5934f1f 100644 --- a/.github/workflows/coverage.yml +++ b/.github/workflows/coverage.yml @@ -29,7 +29,7 @@ jobs: run: go build ./cmd/... - name: Run tests on linux with coverage data - run: go test -race -covermode=atomic -coverprofile=coverage.txt -bench=regex ./... + run: go test -race -coverprofile=coverage.txt -bench=. -benchtime=1x ./... - name: coveralls.io uses: shogo82148/actions-goveralls@v1 |
