Compare commits

...
2 Commits
Author SHA1 Message Date
natalie 8bee2be487 Add lint stage to Jenkins pipeline
seat-back-trivia/pipeline/head This commit looks good
seat-back-trivia/pipeline/pr-main This commit looks good
2026-10-23 21:57:50 +00:00
natalie e8a63533b5 Add lint command for Jenkins CI
seat-back-trivia/pipeline/head This commit looks good
2026-10-23 21:42:45 +00:00
2 changed files with 7 additions and 2 deletions
Vendored
+5 -1
View File
@@ -20,7 +20,11 @@ pipeline {
sh 'npm ci' sh 'npm ci'
} }
} }
stage('Lint') {
steps {
sh 'npm run lint'
}
}
stage('Test') { stage('Test') {
steps { steps {
sh 'npm test' sh 'npm test'
+1
View File
@@ -4,6 +4,7 @@
"private": true, "private": true,
"description": "Minimal WebSocket quiz server for SeatBack Trivia", "description": "Minimal WebSocket quiz server for SeatBack Trivia",
"scripts": { "scripts": {
"lint": "node --check server.js && node --check server.test.js",
"test": "node --test" "test": "node --test"
}, },
"dependencies": { "dependencies": {