Files
CPLv4.0/.woodpecker.yml
2025-08-29 14:14:40 +02:00

36 lines
1.1 KiB
YAML

# .woodpecker.yml — Option B (Browser im Workspace, stabil für CI)
steps:
- name: install-dependencies-and-browsers
image: node:22
environment:
PLAYWRIGHT_BROWSERS_PATH: "0"
CI: "true"
E2E_BASE_URL: "http://localhost:3000"
LANG: "C.UTF-8"
TZ: "Europe/Berlin"
PW_HEADLESS: "1" # erzwingt headless über die Config
commands:
- echo "📦 Installing deps..."
- npm ci
- echo "🧩 Installing Playwright (Chromium) into workspace..."
- npx playwright install chromium
- name: run-tests
image: node:22
environment:
PLAYWRIGHT_BROWSERS_PATH: "0"
CI: "true"
E2E_BASE_URL: "http://localhost:3000"
LANG: "C.UTF-8"
TZ: "Europe/Berlin"
PW_HEADLESS: "1"
commands:
- echo "🔧 Installing system dependencies for Playwright..."
- npx playwright install-deps
- echo "🌱 Starting dev server (npm run dev)..."
- npm run dev &
- echo "⏳ Waiting for dev server to be ready..."
- npx wait-on http://localhost:3000
- echo "🧪 Running Playwright tests (Chromium only)..."
- npx playwright test --project=chromium