diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index ab396f5..8b21ac0 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -33,9 +33,10 @@ test: - go fmt $(go list ./...) - go vet $(go list ./...) - unset "${!CI@}" - - CGO_ENABLED=1 go test -p 1 -mod=readonly -race -coverprofile=.testCoverage.txt -covermode=atomic -coverpkg=$(go list ./... | tr '\n' , | sed 's/,$//') ./... - - go tool cover -html=.testCoverage.txt -o coverage.html - - go tool cover -func=.testCoverage.txt + - CGO_ENABLED=1 go test -mod=readonly -race -coverprofile=coverage.txt -covermode=atomic -coverpkg=$(go list ./... | tr '\n' , | sed 's/,$//') ./... + - go tool cover -html=coverage.txt -o coverage.html + - go tool cover -func=coverage.txt + - bash <(curl -s https://codecov.io/bash) artifacts: paths: - coverage.html