From d12add6e22294ee7819c71c4fa56dc215744f5c2 Mon Sep 17 00:00:00 2001 From: Denton Gentry Date: Thu, 7 Jan 2021 20:26:43 -0800 Subject: [PATCH] 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 --- .github/workflows/coverage.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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