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
const ciConfig = {
'image': 'registry.gitlab.com/openstapps/projectmanagement/node',
'before_script': 'npm ci',
'build': {
'before_script': ['npm ci'],
'npm build': {
stage: 'build',
script: ['npm run build'],
artifacts: {
paths: ['lib'],
},
},
'audit': {
'npm test': {
stage: 'test',
script: ['npm run test'],
},
'npm audit': {
allow_failure: true,
except: ['schedules'],
script: ['npm audit'],
stage: 'audit',
},
'scheduled-audit': {
'scheduled npm audit': {
only: ['schedules'],
script: ['npm audit --audit-level=high'],
stage: 'audit',
},
'package': {
'npm package': {
dependencies: ['build'],
tags: ['secrecy'],
stage: 'publish',