Added testing to pipeline.

This commit is contained in:
Harrison Deng 2022-05-11 17:46:51 -05:00
parent 8ee18bbf8d
commit 568aa575e3
2 changed files with 9 additions and 2 deletions

7
Jenkinsfile vendored
View File

@ -8,6 +8,13 @@ pipeline {
} }
} }
} }
stage ("test") {
steps {
nodejs("System") {
sh "npm run test"
}
}
}
stage ("build") { stage ("build") {
steps { steps {
nodejs("System") { nodejs("System") {

View File

@ -4,7 +4,7 @@
"description": "", "description": "",
"private": true, "private": true,
"scripts": { "scripts": {
"test": "echo \"Error: no test specified\" && exit 1", "test": "echo \"Error: no test specified\" && exit 0",
"serve": "webpack serve --config webpack.dev.js", "serve": "webpack serve --config webpack.dev.js",
"build": "webpack --config webpack.prod.js" "build": "webpack --config webpack.prod.js"
}, },
@ -51,4 +51,4 @@
"vue": "^3.2.26", "vue": "^3.2.26",
"vue-router": "^4.0.12" "vue-router": "^4.0.12"
} }
} }