Fix: replace shivammathur/setup-php with apt-get install
Some checks failed
Repo Health / Access control (push) Failing after 4s
Repo Health / Release configuration (push) Has been skipped
Repo Health / Scripts governance (push) Has been skipped
Repo Health / Repository health (push) Has been skipped

shivammathur/setup-php is incompatible with Gitea act_runner DinD.
Install PHP + extensions directly via apt-get instead.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
Jonathan Miller
2026-04-16 23:05:45 -05:00
parent f75e67d6d0
commit 052459180d

View File

@@ -56,11 +56,11 @@ jobs:
fetch-depth: 0
- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: '8.1'
extensions: mbstring, xml, zip
tools: composer:v2
run: |
sudo apt-get update -qq
sudo apt-get install -y -qq php-cli php-mbstring php-xml php-zip php-curl composer >/dev/null 2>&1
php -v
composer --version
- name: Get version and stability
id: meta