build: refs #6695 add unit test
gitea/salix-front/pipeline/pr-dev There was a failure building this commit Details

This commit is contained in:
Alex Moreno 2025-01-31 12:42:54 +01:00
parent e9d4d79da0
commit 8dd2659d9f
1 changed files with 60 additions and 35 deletions

25
Jenkinsfile vendored
View File

@ -66,6 +66,27 @@ pipeline {
sh 'pnpm install --prefer-offline'
}
}
stage('Test') {
when {
expression { !PROTECTED_BRANCH }
}
environment {
NODE_ENV = ""
}
parallel{
stage('Unit') {
steps {
sh 'pnpm run test:unit:ci'
}
post {
always {
junit(
testResults: 'junitresults.xml',
allowEmptyResults: true
)
}
}
}
stage('E2E') {
when {
expression { !PROTECTED_BRANCH }
@ -110,6 +131,10 @@ pipeline {
}
}
}
}
}
stage('Build') {
when {
expression { PROTECTED_BRANCH }