ci: use php container image instead of setup-php action
Tests / PHP 8.3 (push) Failing after 1m20s
Tests / PHP 8.4 (push) Failing after 1m7s

This commit is contained in:
dgarcia committed 2026-11-15 10:38:47 -03:00
1 parent c586c2c16a
commit a20762a715
1 file changed
+18 -8
+18 -8
View File
@@ -16,16 +16,26 @@ jobs:
name: PHP ${{ matrix.php }}
steps:
- uses: actions/checkout@v4
# The PHP version comes from the job container image instead of shivammathur/setup-php:
# the runner in this Gitea instance reaches github.com intermittently and setup-php
# failed with "TLS handshake timeout". Fewer external actions, fewer failure modes.
container: php:${{ matrix.php }}-cli
- name: Set up PHP
uses: shivammathur/setup-php@v2
steps:
- name: Install system packages
run: |
apt-get update -qq
apt-get install -y -qq --no-install-recommends git unzip libxml2-dev > /dev/null
- uses: actions/checkout@v4
with:
php-version: ${{ matrix.php }}
extensions: json
coverage: none
tools: composer:v2
fetch-depth: 0
- name: Install Composer
run: |
curl -sS https://getcomposer.org/installer -o /tmp/composer-setup.php
php /tmp/composer-setup.php --install-dir=/usr/local/bin --filename=composer --quiet
composer --version
- name: Install dependencies
run: composer update --prefer-dist --no-interaction --no-progress