Jenkinsfile.premerge: style check satellite admin back office files

This change runs our style checker for assets related to the new
satellite admin web app in the pre-merge build. Additionally, the
testing and style checking for web assets has been parallelized.

Change-Id: I0835673435f7ed8a4704c9373fcf5bb8eb5e7d0a
This commit is contained in:
Jeremy Wharton 2023-10-27 01:27:04 -05:00
parent 8ebf285081
commit 4f07994bfb

View File

@ -229,50 +229,64 @@ pipeline {
} }
} }
stage('wasm npm') { stage('Test Web') {
steps { parallel {
dir(".build") { stage('wasm npm') {
sh 'cp -r ../satellite/console/wasm/tests/ .' steps {
sh 'cd tests && cp "$(go env GOROOT)/misc/wasm/wasm_exec.js" .' dir(".build") {
sh 'cd tests && npm install && npm run test' sh 'cp -r ../satellite/console/wasm/tests/ .'
sh 'cd tests && cp "$(go env GOROOT)/misc/wasm/wasm_exec.js" .'
sh 'cd tests && npm install && npm run test'
}
}
} }
}
}
stage('web/satellite') { stage('web/satellite') {
steps { steps {
dir("web/satellite") { dir("web/satellite") {
sh 'npm run lint-ci' sh 'npm run lint-ci'
sh script: 'npm audit', returnStatus: true sh script: 'npm audit', returnStatus: true
sh 'npm run test' sh 'npm run test'
}
}
} }
}
}
stage('web/storagenode') { stage('web/storagenode') {
steps { steps {
dir("web/storagenode") { dir("web/storagenode") {
sh 'npm run lint-ci' sh 'npm run lint-ci'
sh script: 'npm audit', returnStatus: true sh script: 'npm audit', returnStatus: true
sh 'npm run test' sh 'npm run test'
}
}
} }
}
}
stage('web/multinode') { stage('web/multinode') {
steps { steps {
dir("web/multinode") { dir("web/multinode") {
sh 'npm run lint-ci' sh 'npm run lint-ci'
sh script: 'npm audit', returnStatus: true sh script: 'npm audit', returnStatus: true
sh 'npm run test' sh 'npm run test'
}
}
} }
}
}
stage('satellite/admin/ui') { stage('satellite/admin/ui') {
steps { steps {
dir("satellite/admin/ui") { dir("satellite/admin/ui") {
sh script: 'npm audit', returnStatus: true sh script: 'npm audit', returnStatus: true
}
}
}
stage('satellite/admin/back-office/ui') {
steps {
dir("satellite/admin/back-office/ui") {
sh 'npm install --prefer-offline --no-audit --loglevel verbose'
sh 'npm run lint-ci'
sh script: 'npm audit', returnStatus: true
}
}
} }
} }
} }