-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
adds docker file and change the ci yml
- Loading branch information
Showing
5 changed files
with
74 additions
and
28 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
FROM mcr.microsoft.com/playwright:v1.49.0-jammy | ||
|
||
# Set working directory | ||
WORKDIR /app | ||
|
||
# Copy package files first for better caching | ||
COPY package*.json ./ | ||
COPY tsconfig.json ./ | ||
|
||
# Install dependencies | ||
RUN npm ci | ||
|
||
# Copy source files | ||
COPY src ./src | ||
COPY tests ./tests | ||
COPY index.html ./ | ||
COPY playwright.config.ts ./ | ||
|
||
# Build the project | ||
RUN npm run build | ||
|
||
# Install only Chromium browser | ||
RUN npx playwright install chromium | ||
|
||
# Set environment variables | ||
ENV CI=true | ||
ENV DEBUG=pw:api,pw:webserver | ||
|
||
# Command to run tests | ||
CMD xvfb-run --auto-servernum --server-args="-screen 0 1280x720x24" \ | ||
npx playwright test \ | ||
--project=chromium \ | ||
--reporter=list \ | ||
--workers=1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters