ci: report go coverage result.
This commit is contained in:
parent
37ce3971c8
commit
aea5184251
1 changed files with 3 additions and 1 deletions
|
|
@ -47,10 +47,12 @@ sast:
|
||||||
tests:
|
tests:
|
||||||
stage: test
|
stage: test
|
||||||
image: golang
|
image: golang
|
||||||
|
coverage: '/Coverage: \d+.\d+/'
|
||||||
script:
|
script:
|
||||||
- cp tests/journalctl /usr/bin/journalctl
|
- cp tests/journalctl /usr/bin/journalctl
|
||||||
- chmod 755 /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
|
# Package Build
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue