fix(ci): mount test files individually, install playwright@1.51.0 in container to avoid node_modules version conflict

This commit is contained in:
Jarian Cottingham 2026-07-08 00:28:18 +00:00 committed by Jarian
parent 4c0998b093
commit 602fd1a6cf

View File

@ -174,12 +174,13 @@ jobs:
APP_PORT="${{ steps.port.outputs.app_port }}"
docker run --rm \
--network newsarchiver-network \
-v $GITHUB_WORKSPACE/tests/playwright:/tests \
-v $GITHUB_WORKSPACE/tests/playwright/tests:/tests/tests \
-v $GITHUB_WORKSPACE/tests/playwright/playwright.config.ts:/tests/playwright.config.ts \
-w /tests \
-e APP_URL=http://newsarchiver-e2e:${APP_PORT} \
-e PLAYWRIGHT_BROWSERS_PATH=/ms-playwright \
mcr.microsoft.com/playwright:v1.51.0-jammy \
npx playwright@1.51.0 test
sh -c "npm install @playwright/test@1.51.0 && npx playwright@1.51.0 test"
- name: Cleanup
if: always()