fix(ci): use playwright binary directly instead of npx to prevent hang

The npx/npm-exec process wrapper can fail to detect child process exit,
causing indefinite hangs. Calling node_modules/.bin/playwright directly
bypasses the npm process management layer entirely.
This commit is contained in:
copilot-swe-agent[bot]
2026-06-02 14:59:57 +00:00
committed by GitHub
parent 5c84df6149
commit 91a7024bc6
2 changed files with 8 additions and 8 deletions
+4 -4
View File
@@ -38,10 +38,10 @@ jobs:
run: cd php/tests && npm ci
- name: Install Playwright system dependencies
run: cd php/tests && npx playwright install-deps chromium
run: cd php/tests && ./node_modules/.bin/playwright install-deps chromium
- name: Install Playwright Browsers
run: cd php/tests && npx playwright install chromium
run: cd php/tests && ./node_modules/.bin/playwright install chromium
- name: Set up php 8.5
uses: shivammathur/setup-php@accd6127cb78bee3e8082180cb391013d204ef9f # v2.37.0
@@ -89,7 +89,7 @@ jobs:
run: |
cd php/tests
export DEBUG=pw:api
if ! npx playwright test tests/initial-setup.spec.js; then
if ! ./node_modules/.bin/playwright test tests/initial-setup.spec.js; then
docker logs nextcloud-aio-mastercontainer
docker logs nextcloud-aio-borgbackup
exit 1
@@ -121,7 +121,7 @@ jobs:
run: |
cd php/tests
export DEBUG=pw:api
if ! npx playwright test tests/restore-instance.spec.js; then
if ! ./node_modules/.bin/playwright test tests/restore-instance.spec.js; then
docker logs nextcloud-aio-mastercontainer
docker logs nextcloud-aio-borgbackup
exit 1
@@ -23,10 +23,10 @@ jobs:
run: cd php/tests && npm ci
- name: Install Playwright system dependencies
run: cd php/tests && npx playwright install-deps chromium
run: cd php/tests && ./node_modules/.bin/playwright install-deps chromium
- name: Install Playwright Browsers
run: cd php/tests && npx playwright install chromium
run: cd php/tests && ./node_modules/.bin/playwright install chromium
- name: Start fresh development server
run: |
@@ -51,7 +51,7 @@ jobs:
run: |
cd php/tests
export DEBUG=pw:api
if ! npx playwright test tests/initial-setup.spec.js; then
if ! ./node_modules/.bin/playwright test tests/initial-setup.spec.js; then
docker logs nextcloud-aio-mastercontainer
docker logs nextcloud-aio-borgbackup
exit 1
@@ -79,7 +79,7 @@ jobs:
run: |
cd php/tests
export DEBUG=pw:api
if ! npx playwright test tests/restore-instance.spec.js; then
if ! ./node_modules/.bin/playwright test tests/restore-instance.spec.js; then
docker logs nextcloud-aio-mastercontainer
docker logs nextcloud-aio-borgbackup
exit 1