mirror of
https://gitlab.com/openstapps/openstapps.git
synced 2026-01-07 05:52:57 +00:00
refactor: update ci recommendations
This commit is contained in:
@@ -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',
|
||||
|
||||
Reference in New Issue
Block a user