mirror of
https://gitlab.com/openstapps/openstapps.git
synced 2026-01-10 19:52:53 +00:00
feat: add proper coverage to ci templates
This commit is contained in:
@@ -725,7 +725,7 @@ export function getRules(configuration: Configuration): Rules {
|
||||
'include': ['src'],
|
||||
'lines': 95,
|
||||
'per-file': true,
|
||||
'reporter': ['html', 'text-summary'],
|
||||
'reporter': ['cobertura', 'html', 'text-summary'],
|
||||
'require': ['ts-node/register'],
|
||||
'statements': 95,
|
||||
};
|
||||
@@ -758,6 +758,15 @@ export function getRules(configuration: Configuration): Rules {
|
||||
'npm test': {
|
||||
stage: 'test',
|
||||
script: ['npm run test'],
|
||||
coverage: '/Statements[^:]*\\:[^:]*\\s+([\\d\\.]+)%/',
|
||||
artifacts: {
|
||||
reports: {
|
||||
coverage_report: {
|
||||
coverage_format: 'cobertura',
|
||||
path: 'coverage/cobertura-coverage.xml',
|
||||
},
|
||||
},
|
||||
},
|
||||
},
|
||||
'npm audit': {
|
||||
allow_failure: true,
|
||||
|
||||
Reference in New Issue
Block a user