From cff69973374e1f2c4f0c8a78aaf830aea241cc65 Mon Sep 17 00:00:00 2001 From: sirkrypt0 <22522058+sirkrypt0@users.noreply.github.com> Date: Fri, 30 Apr 2021 15:26:59 +0200 Subject: [PATCH] Add coverage report --- .gitlab-ci.yml | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index a0c1122..f96f5c7 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -45,7 +45,14 @@ test: stage: test needs: [] script: - - go test ./... -v + - go test ./... -v -coverprofile coverage.cov + - go tool cover -func=coverage.cov + - go tool cover -html=coverage.cov -o coverage.html + artifacts: + paths: + - coverage.html + expire_in: 1 week + expose_as: coverageReport dockerimage: stage: docker