mirror of
https://gitlab.com/openstapps/openstapps.git
synced 2026-01-22 17:42:57 +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'],
|
'include': ['src'],
|
||||||
'lines': 95,
|
'lines': 95,
|
||||||
'per-file': true,
|
'per-file': true,
|
||||||
'reporter': ['html', 'text-summary'],
|
'reporter': ['cobertura', 'html', 'text-summary'],
|
||||||
'require': ['ts-node/register'],
|
'require': ['ts-node/register'],
|
||||||
'statements': 95,
|
'statements': 95,
|
||||||
};
|
};
|
||||||
@@ -758,6 +758,15 @@ export function getRules(configuration: Configuration): Rules {
|
|||||||
'npm test': {
|
'npm test': {
|
||||||
stage: 'test',
|
stage: 'test',
|
||||||
script: ['npm run test'],
|
script: ['npm run test'],
|
||||||
|
coverage: '/Statements[^:]*\\:[^:]*\\s+([\\d\\.]+)%/',
|
||||||
|
artifacts: {
|
||||||
|
reports: {
|
||||||
|
coverage_report: {
|
||||||
|
coverage_format: 'cobertura',
|
||||||
|
path: 'coverage/cobertura-coverage.xml',
|
||||||
|
},
|
||||||
|
},
|
||||||
|
},
|
||||||
},
|
},
|
||||||
'npm audit': {
|
'npm audit': {
|
||||||
allow_failure: true,
|
allow_failure: true,
|
||||||
|
|||||||
Reference in New Issue
Block a user