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 }} name: PHP ${{ matrix.php }}
steps: # The PHP version comes from the job container image instead of shivammathur/setup-php:
- uses: actions/checkout@v4 # 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 steps:
uses: shivammathur/setup-php@v2 - 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: with:
php-version: ${{ matrix.php }} fetch-depth: 0
extensions: json
coverage: none - name: Install Composer
tools: composer:v2 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 - name: Install dependencies
run: composer update --prefer-dist --no-interaction --no-progress run: composer update --prefer-dist --no-interaction --no-progress