20 lines
395 B
Groovy
20 lines
395 B
Groovy
pipeline {
|
|
agent any
|
|
tools { nodejs 'node20' }
|
|
stages {
|
|
stage('Checkout') {
|
|
steps { checkout scm }
|
|
}
|
|
stage('Install dependencies') {
|
|
steps { sh 'npm ci' }
|
|
}
|
|
stage('Playwright tests') {
|
|
steps {
|
|
// Installiert Browser & Systemdeps falls nötig
|
|
sh 'npx playwright install --with-deps'
|
|
sh 'npx playwright test'
|
|
}
|
|
}
|
|
}
|
|
}
|