fix: Improve code coverage reporting in codecov (#2715)

* fix: Remove explicit coverpkg github.com/coder/coder/codersdk

This package is already covered by ./...

* fix: Ignore test utils in coverage (clitest, coderdtest, ptytest)
This commit is contained in:
Mathias Fredriksson
2022-07-25 19:55:19 +03:00
committed by GitHub
parent 6c5a142674
commit d7dee2c069
5 changed files with 10 additions and 4 deletions
+1 -1
View File
@@ -297,7 +297,7 @@ jobs:
# systems.
if [ "${{ matrix.os }}" == "ubuntu-latest" ]; then
echo ::set-output name=cover::true
export COVERAGE_FLAGS='-covermode=atomic -coverprofile="gotests.coverage" -coverpkg=./...,github.com/coder/coder/codersdk'
export COVERAGE_FLAGS='-covermode=atomic -coverprofile="gotests.coverage" -coverpkg=./...'
else
echo ::set-output name=cover::false
fi