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>
This commit is contained in:
Denton Gentry 2021-01-07 20:26:43 -08:00 committed by Denton Gentry
parent 332759ef73
commit d12add6e22

View File

@ -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