refactor: update ci recommendations

This commit is contained in:
Rainer Killinger
2022-07-05 13:03:31 +02:00
parent df92e97cb6
commit e2e0e8aa70

View File

@@ -747,26 +747,30 @@ export function getRules(configuration: Configuration): Rules {
// expected values in CI config // expected values in CI config
const ciConfig = { const ciConfig = {
'image': 'registry.gitlab.com/openstapps/projectmanagement/node', 'image': 'registry.gitlab.com/openstapps/projectmanagement/node',
'before_script': 'npm ci', 'before_script': ['npm ci'],
'build': { 'npm build': {
stage: 'build', stage: 'build',
script: ['npm run build'], script: ['npm run build'],
artifacts: { artifacts: {
paths: ['lib'], paths: ['lib'],
}, },
}, },
'audit': { 'npm test': {
stage: 'test',
script: ['npm run test'],
},
'npm audit': {
allow_failure: true, allow_failure: true,
except: ['schedules'], except: ['schedules'],
script: ['npm audit'], script: ['npm audit'],
stage: 'audit', stage: 'audit',
}, },
'scheduled-audit': { 'scheduled npm audit': {
only: ['schedules'], only: ['schedules'],
script: ['npm audit --audit-level=high'], script: ['npm audit --audit-level=high'],
stage: 'audit', stage: 'audit',
}, },
'package': { 'npm package': {
dependencies: ['build'], dependencies: ['build'],
tags: ['secrecy'], tags: ['secrecy'],
stage: 'publish', stage: 'publish',