ci(gitea): install php-curl, proxy-http tests need CURLOPT_* constants
Some checks failed
Caterium QA / qa (push) Failing after 18m21s

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
This commit is contained in:
pavlov346346-source 2026-09-23 14:29:27 +03:00
parent 66ab47de72
commit 3c15562e08

View File

@ -57,10 +57,12 @@ jobs:
- name: Install PHP CLI
# The self-hosted act_runner image (unlike GitHub's ubuntu-latest)
# ships without PHP at all, so the lint/proxy steps below fail with
# "php: command not found" unless we install it first.
# "php: command not found" unless we install it first. php-curl is
# needed too: tests/proxy-http.php calls CURLOPT_* constants, which
# the bare php-cli package doesn't define.
run: |
apt-get update -y
apt-get install -y --no-install-recommends php-cli
apt-get install -y --no-install-recommends php-cli php-curl
- 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: npx playwright install --with-deps chromium webkit