From 602fd1a6cf8a5ef7f502571c79a9566697d89903 Mon Sep 17 00:00:00 2001 From: Jarian Cottingham Date: Wed, 8 Jul 2026 00:28:18 +0000 Subject: [PATCH] fix(ci): mount test files individually, install playwright@1.51.0 in container to avoid node_modules version conflict --- .gitea/workflows/ci.yml | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/.gitea/workflows/ci.yml b/.gitea/workflows/ci.yml index 078a3ce..52887ea 100644 --- a/.gitea/workflows/ci.yml +++ b/.gitea/workflows/ci.yml @@ -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()