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
4c0998b093
commit
602fd1a6cf
@ -174,12 +174,13 @@ jobs:
|
|||||||
APP_PORT="${{ steps.port.outputs.app_port }}"
|
APP_PORT="${{ steps.port.outputs.app_port }}"
|
||||||
docker run --rm \
|
docker run --rm \
|
||||||
--network newsarchiver-network \
|
--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 \
|
-w /tests \
|
||||||
-e APP_URL=http://newsarchiver-e2e:${APP_PORT} \
|
-e APP_URL=http://newsarchiver-e2e:${APP_PORT} \
|
||||||
-e PLAYWRIGHT_BROWSERS_PATH=/ms-playwright \
|
-e PLAYWRIGHT_BROWSERS_PATH=/ms-playwright \
|
||||||
mcr.microsoft.com/playwright:v1.51.0-jammy \
|
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
|
- name: Cleanup
|
||||||
if: always()
|
if: always()
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user