完善 CI 质量门禁并启用覆盖率阈值

This commit is contained in:
2026-03-03 13:02:31 +08:00
parent 4cd593bc30
commit 41ac21ea12
8 changed files with 213 additions and 19 deletions
Vendored
+14
View File
@@ -18,6 +18,20 @@ pipeline {
}
}
stage('Install Dependencies') {
steps {
sh 'npm ci'
}
}
stage('Quality Gate') {
steps {
sh 'npm run lint'
sh 'npx tsc --noEmit'
sh 'npm run test:coverage'
}
}
stage('Build Docker Image') {
steps {
sh "docker build --build-arg NEXT_PUBLIC_AMAP_API_KEY=${AMAP_KEY} -t ${APP_NAME}:${BUILD_NUMBER} -t ${APP_NAME}:latest ."