22 lines
526 B
Groovy
22 lines
526 B
Groovy
pipeline {
|
|
agent any
|
|
stages {
|
|
stage('Install dependencies') {
|
|
steps {
|
|
sh 'npm ci'
|
|
}
|
|
}
|
|
stage('Start Webserver') {
|
|
steps {
|
|
sh 'nohup npm run dev &'
|
|
sleep(time: 20, unit: 'SECONDS') // Wartezeit für Server-Start
|
|
}
|
|
}
|
|
stage('Run Playwright tests') {
|
|
steps {
|
|
sh 'npx playwright install'
|
|
sh 'npx playwright test'
|
|
}
|
|
}
|
|
}
|
|
} |