refactor: refs #6695 update Jenkinsfile to run E2E tests in parallel and simplify docker-compose command
gitea/salix-front/pipeline/pr-dev Something is wrong with the build of this commit Details

This commit is contained in:
Alex Moreno 2025-02-13 09:48:11 +01:00
parent 2e0b4a5322
commit 5dc73614a3
2 changed files with 5 additions and 3 deletions

6
Jenkinsfile vendored
View File

@ -120,8 +120,10 @@ pipeline {
stage('E2E: Sections') {
steps {
script {
runTestsInParallel(2)
sh "docker-compose -p ${env.NETWORK} -f docker-compose.e2e.yml up -d back"
sh "docker-compose -p ${env.NETWORK} -f docker-compose.e2e.yml up -d front"
sh "docker-compose -p ${env.NETWORK} -f docker-compose.e2e.yml up e2e"
checkErrors(folderName)
}
}
}

View File

@ -23,7 +23,7 @@ services:
e2e:
image: alexmorenovn/vndev:latest
# command: pnpm exec cypress run --browser chromium
command: sh -c "pnpm exec cypress install && pnpm exec cypress run --headed --spec ${CYPRESS_SPEC:?}"
command: pnpm exec cypress run --headed
environment:
- TZ=Europe/Madrid
volumes: