ci: publish frontend test and coverage reports
Some checks failed
Tests / Backend - Tests No test results found
THE-TIP-TOP-MULTIBRANCH/pipeline/head There was a failure building this commit

This commit is contained in:
2026-08-24 18:25:58 +00:00
parent 79e10946b8
commit ab8ea038c0
5 changed files with 253 additions and 46 deletions

17
Jenkinsfile vendored
View File

@@ -189,7 +189,7 @@ pipeline {
}
}
stage('Frontend - Lint et Build') {
stage('Frontend - Lint, Tests et Build') {
steps {
sh '''
docker run --rm \
@@ -213,10 +213,25 @@ pipeline {
sh -c "
npm ci --prefer-offline --no-audit --no-fund &&
npm run lint &&
npm run test:coverage &&
npm run build
"
'''
}
post {
always {
junit(
testResults: 'frontend/test-results/*.xml',
allowEmptyResults: true
)
archiveArtifacts(
artifacts: 'frontend/coverage/**',
fingerprint: true,
allowEmptyArchive: true
)
}
}
}
stage('Construction des images Docker') {