mirror of
https://github.com/s-frick/effigenix.git
synced 2026-03-28 17:49:57 +01:00
phase 1
This commit is contained in:
parent
6a672705c2
commit
e897f41a32
12 changed files with 129 additions and 31 deletions
|
|
@ -1,20 +1,18 @@
|
|||
# E2E-Test-Runner (Playwright API-Tests, kein Browser)
|
||||
# Build-Context: Repo-Root (..)
|
||||
# Standalone – benötigt keine pnpm-Workspace-Konfiguration.
|
||||
|
||||
FROM mcr.microsoft.com/playwright:v1.51.0-noble
|
||||
|
||||
WORKDIR /app
|
||||
|
||||
# pnpm installieren
|
||||
RUN npm install -g pnpm@9
|
||||
|
||||
# Workspace-Root und e2e-Package-Manifest kopieren
|
||||
COPY frontend/package.json frontend/pnpm-workspace.yaml ./
|
||||
COPY test-automation/web-ui/package.json ./test-automation/web-ui/
|
||||
|
||||
# pnpm Install (nur Prod + Dev-Deps des e2e-Pakets)
|
||||
RUN pnpm install --frozen-lockfile
|
||||
|
||||
# Test-Code und Konfiguration kopieren
|
||||
COPY test-automation/web-ui/ ./test-automation/web-ui/
|
||||
|
||||
WORKDIR /app/test-automation/web-ui
|
||||
|
||||
ENTRYPOINT ["pnpm", "exec", "playwright", "test"]
|
||||
# Nur package.json zuerst für Layer-Caching
|
||||
COPY test-automation/web-ui/package.json ./
|
||||
RUN pnpm install --no-frozen-lockfile
|
||||
|
||||
# Test-Code kopieren
|
||||
COPY test-automation/web-ui/ ./
|
||||
|
||||
ENTRYPOINT ["pnpm", "exec", "playwright", "test", "--project=api"]
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue