ci: report go coverage result.

This commit is contained in:
Alexandre Pujol 2023-01-28 19:44:21 +00:00
parent 37ce3971c8
commit aea5184251
No known key found for this signature in database
GPG Key ID: C5469996F0DF68EC

View File

@ -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