fix: woodpecker

This commit is contained in:
ISA
2025-09-05 11:30:39 +02:00
parent 2166744c63
commit 29a79ce0a9
6 changed files with 18 additions and 13 deletions

View File

@@ -34,14 +34,14 @@ steps:
PORT: "3000"
commands:
- node -v && npm -v
# Skip lifecycle scripts in CI to avoid running husky's prepare step (husky is a devDep)
- env npm_config_production=false npm ci --ignore-scripts
- 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
# Skip lifecycle scripts in CI to avoid running husky's prepare step (husky is a devDep)
- env npm_config_production=false npm ci --ignore-scripts
- 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