Adjust build process
This commit is contained in:
parent
99add9dbe2
commit
f64d5c2420
8 changed files with 31 additions and 6 deletions
15
.gitlab/test.gitlab-ci.yml
Normal file
15
.gitlab/test.gitlab-ci.yml
Normal file
|
@ -0,0 +1,15 @@
|
|||
unit_tests:
|
||||
rules: !reference [.rules:default, rules]
|
||||
stage: test
|
||||
image: golang:$GOLANG_VERSION-alpine
|
||||
extends:
|
||||
- .go-cache
|
||||
script:
|
||||
- go install gotest.tools/gotestsum@latest
|
||||
- gotestsum --junitfile report.xml --format testname -- ./... -coverprofile=profile.cov
|
||||
- go tool cover -func profile.cov
|
||||
coverage: '/\(statements\)(?:\s+)?(\d+(?:\.\d+)?%)/'
|
||||
artifacts:
|
||||
when: always
|
||||
reports:
|
||||
junit: report.xml
|
Loading…
Add table
Add a link
Reference in a new issue