32 lines
1018 B
YAML
32 lines
1018 B
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 "🧪 Running Playwright tests (Chromium only)..."
|
|
- npx playwright test --project=chromium # <-- kein --headless
|