fix(ci): mount test files individually, install playwright@1.51.0 in container to avoid node_modules version conflict
This commit is contained in:
parent
771facb878
commit
35f67723d4
@ -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()
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user