Add lint stage to Jenkins CI pipeline #9

Open
natalie wants to merge 2 commits from jenkins-lint into main
2 changed files with 7 additions and 2 deletions
Vendored
+5 -1
View File
@@ -20,7 +20,11 @@ pipeline {
sh 'npm ci'
}
}
stage('Lint') {
steps {
sh 'npm run lint'
}
}
stage('Test') {
steps {
sh 'npm test'
+1
View File
@@ -4,6 +4,7 @@
"private": true,
"description": "Minimal WebSocket quiz server for SeatBack Trivia",
"scripts": {
"lint": "node --check server.js && node --check server.test.js",
"test": "node --test"
},
"dependencies": {