Adjust build process

This commit is contained in:
Florian Hoss 2023-07-05 11:05:51 +02:00
parent 99add9dbe2
commit f64d5c2420
8 changed files with 31 additions and 6 deletions

View 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