diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 1cd0d50..fc59a1b 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -11,8 +11,14 @@ test: - main - merge_requests script: - - go test -race ./... - + - 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 + artifacts: + reports: + coverage_report: + coverage_format: cobertura + path: coverage.xml push: stage: push rules: