chore: add codecov upload
This commit is contained in:
+4
-3
@@ -33,9 +33,10 @@ test:
|
|||||||
- go fmt $(go list ./...)
|
- go fmt $(go list ./...)
|
||||||
- go vet $(go list ./...)
|
- go vet $(go list ./...)
|
||||||
- unset "${!CI@}"
|
- unset "${!CI@}"
|
||||||
- CGO_ENABLED=1 go test -p 1 -mod=readonly -race -coverprofile=.testCoverage.txt -covermode=atomic -coverpkg=$(go list ./... | tr '\n' , | sed 's/,$//') ./...
|
- CGO_ENABLED=1 go test -mod=readonly -race -coverprofile=coverage.txt -covermode=atomic -coverpkg=$(go list ./... | tr '\n' , | sed 's/,$//') ./...
|
||||||
- go tool cover -html=.testCoverage.txt -o coverage.html
|
- go tool cover -html=coverage.txt -o coverage.html
|
||||||
- go tool cover -func=.testCoverage.txt
|
- go tool cover -func=coverage.txt
|
||||||
|
- bash <(curl -s https://codecov.io/bash)
|
||||||
artifacts:
|
artifacts:
|
||||||
paths:
|
paths:
|
||||||
- coverage.html
|
- coverage.html
|
||||||
|
|||||||
Reference in New Issue
Block a user