test(docker): Added docker container

Playwright tests execute in containers, allowing developers to test independently of the operating system.
This commit is contained in:
2026-07-15 13:55:27 +02:00
parent 1874c0ea9e
commit 9821ffe642
2 changed files with 24 additions and 0 deletions
+18
View File
@@ -0,0 +1,18 @@
FROM mcr.microsoft.com/playwright:v1.61.1-noble
RUN corepack enable && corepack prepare pnpm@10 --activate
ENV CI=true
WORKDIR /app
COPY pnpm-lock.yaml pnpm-workspace.yaml package.json ./
COPY packages/luna-charts/package.json ./packages/luna-charts/
RUN pnpm install --frozen-lockfile
COPY . .
WORKDIR /app/packages/luna-charts
CMD ["pnpm", "test:browser"]
+6
View File
@@ -0,0 +1,6 @@
services:
test:
build:
context: .
dockerfile: Dockerfile.test
working_dir: /app/packages/luna-charts