diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 81d8ea19..c06667b9 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -47,10 +47,12 @@ sast: tests: stage: test image: golang + coverage: '/Coverage: \d+.\d+/' script: - cp tests/journalctl /usr/bin/journalctl - chmod 755 /usr/bin/journalctl - - go test ./cmd/aa-log -v -cover + - go test ./cmd/aa-log -v -cover -coverprofile=coverage.out + - go tool cover -func=coverage.out # Package Build