35 lines
1.1 KiB
YAML
35 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 "🧪 Running Playwright tests (Chromium only)..."
|
|
- npx playwright test --project=chromium
|