test: woodpecker

This commit is contained in:
ISA
2025-09-05 07:28:44 +02:00
parent bd683d021a
commit 941b914fa9
7 changed files with 29 additions and 14 deletions

View File

@@ -28,11 +28,18 @@ steps:
image: mcr.microsoft.com/playwright:v1.54.2-jammy
environment:
CI: "true"
NODE_ENV: "development"
NODE_ENV: "production"
NEXT_TELEMETRY_DISABLED: "1"
PORT: "3000"
commands:
- node -v && npm -v
- npm ci
- npm run build
# Start local static simulator in background
- node scripts/local-cpl-sim.mjs &
# Wait until simulator responds on port 3000 (no curl dependency)
- |
node -e "const http=require('http');let n=120;function ping(){http.get('http://localhost:3000',res=>{console.log('Server is up');process.exit(0)}).on('error',()=>{if(n--<=0){console.error('Server did not start');process.exit(1)}setTimeout(ping,1000)});}ping();"
- npx playwright test --project=chromium
- name: notify-success
image: alpine/curl:latest