34 lines
868 B
YAML
34 lines
868 B
YAML
# .woodpecker.yml
|
||
# Next.js + Playwright im DEV-Modus (webServer aus playwright.config.ts)
|
||
|
||
clone:
|
||
git:
|
||
image: woodpeckerci/plugin-git
|
||
settings:
|
||
depth: 0
|
||
lfs: true
|
||
submodules: true
|
||
|
||
when:
|
||
- event: push
|
||
- event: pull_request
|
||
|
||
steps:
|
||
- name: e2e-dev
|
||
# Image-Version MUSS zu deiner @playwright/test-Version passen!
|
||
# Falls dein package.json 1.54.x nutzt, ist dieses Image korrekt:
|
||
image: mcr.microsoft.com/playwright:v1.54.2-jammy
|
||
environment:
|
||
CI: "true"
|
||
NODE_ENV: "development"
|
||
NEXT_TELEMETRY_DISABLED: "1"
|
||
TZ: "Europe/Berlin"
|
||
LANG: "C.UTF-8"
|
||
# Falls dein webServer auf 3000 hört:
|
||
PORT: "3000"
|
||
commands:
|
||
- node -v && npm -v
|
||
- npm ci
|
||
# KEIN manueller Serverstart hier – Playwright webServer übernimmt das!
|
||
- npx playwright test --project=chromium
|