diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index d2ffc61..631e6a5 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -9,7 +9,15 @@ test: stage: test image: golang:alpine script: - - go test ./... -v + - go mod download + - go test ./... -v -coverprofile=coverage.txt -covermode count + - go get github.com/boumenot/gocover-cobertura + - go run github.com/boumenot/gocover-cobertura < coverage.txt > coverage.xml + artifacts: + reports: + coverage_report: + coverage_format: cobertura + path: coverage.xml build: stage: build