github: Fix go test coverage report

The go test coverage report does not cover other packages unless you
list them with the -coverpkg= argument. This results in an incomplete
coverage report with oddly missing lines.

This commit lists all of the packages so that they will all be included
when running the tests and gathering the results.
This commit is contained in:
Brian C. Lane 2020-05-01 16:54:09 -07:00 committed by Tom Gundersen
parent 62f61d34c2
commit 3c312b9bbd

View file

@ -44,7 +44,7 @@ jobs:
run: $(go env GOPATH)/bin/golangci-lint run
- name: Run unit tests
run: go test -v -race -covermode atomic -coverprofile=coverage.txt ./...
run: go test -v -race -covermode=atomic -coverprofile=coverage.txt -coverpkg=./... ./...
- name: Send coverage to codecov.io
run: bash <(curl -s https://codecov.io/bash)