From c7d38ba546a38c6770c113b59ada3c42b842d2e5 Mon Sep 17 00:00:00 2001 From: Alexandre Iooss Date: Fri, 9 Oct 2020 22:55:32 +0200 Subject: [PATCH] Upload HTML coverage as artifact --- .gitlab-ci.yml | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index da0f063..6288eb7 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -10,6 +10,11 @@ unit_tests: script: - go test -v -covermode=count -coverprofile cover.cov ./... - go tool cover -func=cover.cov + - go tool cover -html=cover.cov -o coverage.html + artifacts: + paths: + - coverage.html + expire_in: 1 week linters: image: golang:1.15-alpine