ci(gitea): run e2e tests with a single worker, VPS can't handle parallel chromium+webkit
Some checks failed
Caterium QA / qa (push) Failing after 58m54s

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
This commit is contained in:
pavlov346346-source 2026-09-23 16:42:41 +03:00
parent 3c15562e08
commit c985714ad6

View File

@ -66,4 +66,13 @@ jobs:
- run: php -l public/api/index.php && php -l ops/timeweb/api-proxy.php - run: php -l public/api/index.php && php -l ops/timeweb/api-proxy.php
- run: php tests/proxy-http.php app && php tests/proxy-http.php api - run: php tests/proxy-http.php app && php tests/proxy-http.php api
- run: npx playwright install --with-deps chromium webkit - run: npx playwright install --with-deps chromium webkit
- run: npm run test:e2e - name: Run e2e tests
# This VPS (2 CPU / 4GB) also runs Gitea + Postgres + Caddy. Playwright's
# default worker count (one per CPU, all projects in parallel) spins up
# chromium and webkit processes concurrently and has twice now driven the
# host into an unresponsive state (server needed a hard reboot) partway
# through this step. --workers=1 runs the same test suite serially
# instead of in parallel — slower, but it keeps peak memory/CPU to one
# browser process at a time. GitHub-hosted runners have real headroom,
# so .github/workflows/qa.yml keeps full parallelism.
run: npx playwright test --config=tests/playwright.config.mjs --workers=1