test: meldungenTest.ts
This commit is contained in:
@@ -1,22 +1,23 @@
|
||||
# .woodpecker.yml — Option B (Browser im Workspace)
|
||||
steps:
|
||||
- name: install-dependencies
|
||||
- name: install-dependencies-and-browsers
|
||||
image: node:22
|
||||
environment:
|
||||
NODE_PATH: /var/jenkins_home/.npm/node_modules
|
||||
NPM_CONFIG_CACHE: /var/jenkins_home/.npm
|
||||
PLAYWRIGHT_BROWSERS_PATH: "0" # Browser in ./node_modules/playwright/.local-browsers
|
||||
CI: "true"
|
||||
commands:
|
||||
- echo "📦 Installing dependencies..."
|
||||
- npm install --prefer-offline --no-audit
|
||||
|
||||
- name: install-playwright
|
||||
image: node:22
|
||||
commands:
|
||||
- echo "🧩 Installing Playwright and required browsers..."
|
||||
- npx playwright install # vollständige Installation inkl. Chromium & headless_shell
|
||||
- npx playwright install-deps
|
||||
- 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" # gleicher Pfad wie oben
|
||||
CI: "true"
|
||||
commands:
|
||||
- echo "🔧 Installing system dependencies for Playwright..."
|
||||
- npx playwright install-deps
|
||||
- echo "🧪 Running Playwright tests (Chromium only)..."
|
||||
- npx playwright test --project=chromium
|
||||
|
||||
Reference in New Issue
Block a user