From 42beae6b86348b6c0ac51b3bf99dc78d5610ad0a Mon Sep 17 00:00:00 2001 From: Joakim Olsson Date: Wed, 17 Nov 2021 06:39:59 +0100 Subject: [PATCH] ci: change to codecov binary instead of bash uploader --- .gitlab-ci.yml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index a561094..0fe7f0f 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -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