ci: add cobertura coverage report

This commit is contained in:
Rainer Killinger
2022-08-17 16:35:14 +02:00
parent c4016fd29a
commit f2cb318a09
2 changed files with 8 additions and 1 deletions

View File

@@ -52,6 +52,12 @@ unit:
stage: test
script:
- npm test
coverage: '/Statements[^:]*\:[^:]*\s+([\d\.]+)%/'
artifacts:
reports:
coverage_report:
coverage_format: cobertura
path: coverage/cobertura-coverage.xml
pages:
stage: deploy