From 190657f2fa5d2c9f6fe1ca02b774d74efac98025 Mon Sep 17 00:00:00 2001 From: John Donaldson Date: Tue, 25 Oct 2022 13:48:58 -0700 Subject: [PATCH] Add more coverage artifacts --- .gitlab-ci.yml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 1ee5cae..2a2d301 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -14,6 +14,7 @@ test: - go test -coverprofile=coverage.txt -covermode=atomic -race ./... - go get github.com/boumenot/gocover-cobertura - go run github.com/boumenot/gocover-cobertura < coverage.txt > coverage.xml + - go tool cover -html=coverage.txt -o coverage.html - go tool cover -func coverage.txt coverage: /\(statements\)(?:\s+)?(\d+(?:\.\d+)?%)/ artifacts: @@ -21,6 +22,9 @@ test: coverage_report: coverage_format: cobertura path: coverage.xml + paths: + - coverage.html + - coverage.txt push: stage: push rules: