ci: change to codecov binary instead of bash uploader

This commit is contained in:
2021-11-17 06:39:59 +01:00
parent be92b5ada7
commit 42beae6b86
+3 -1
View File
@@ -46,7 +46,9 @@ test:
- 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)
- curl -Os https://uploader.codecov.io/latest/linux/codecov
- chmod +x codecov
- ./codecov -t ${CODECOV_TOKEN}
artifacts:
paths:
- coverage.html