mirror of
https://gitlab.com/openstapps/openstapps.git
synced 2026-01-21 17:12:43 +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
|
// 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',
|
||||||
|
|||||||
Reference in New Issue
Block a user