From 4f07994bfb9d769fceaede7fab4c4fdbe41b56a9 Mon Sep 17 00:00:00 2001 From: Jeremy Wharton Date: Fri, 27 Oct 2023 01:27:04 -0500 Subject: [PATCH] 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 --- Jenkinsfile.premerge | 86 +++++++++++++++++++++++++------------------- 1 file changed, 50 insertions(+), 36 deletions(-) diff --git a/Jenkinsfile.premerge b/Jenkinsfile.premerge index e5202142d..008359f5a 100644 --- a/Jenkinsfile.premerge +++ b/Jenkinsfile.premerge @@ -229,50 +229,64 @@ pipeline { } } - stage('wasm npm') { - steps { - dir(".build") { - 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('Test Web') { + parallel { + stage('wasm npm') { + steps { + dir(".build") { + 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') { - steps { - dir("web/satellite") { - sh 'npm run lint-ci' - sh script: 'npm audit', returnStatus: true - sh 'npm run test' + stage('web/satellite') { + steps { + dir("web/satellite") { + sh 'npm run lint-ci' + sh script: 'npm audit', returnStatus: true + sh 'npm run test' + } + } } - } - } - stage('web/storagenode') { - steps { - dir("web/storagenode") { - sh 'npm run lint-ci' - sh script: 'npm audit', returnStatus: true - sh 'npm run test' + stage('web/storagenode') { + steps { + dir("web/storagenode") { + sh 'npm run lint-ci' + sh script: 'npm audit', returnStatus: true + sh 'npm run test' + } + } } - } - } - stage('web/multinode') { - steps { - dir("web/multinode") { - sh 'npm run lint-ci' - sh script: 'npm audit', returnStatus: true - sh 'npm run test' + stage('web/multinode') { + steps { + dir("web/multinode") { + sh 'npm run lint-ci' + sh script: 'npm audit', returnStatus: true + sh 'npm run test' + } + } } - } - } - stage('satellite/admin/ui') { - steps { - dir("satellite/admin/ui") { - sh script: 'npm audit', returnStatus: true + stage('satellite/admin/ui') { + steps { + dir("satellite/admin/ui") { + 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 + } + } } } }