From a20762a715ca2809d34ed97eaa715fb1723f7df7 Mon Sep 17 00:00:00 2001 From: Dario Garcia Date: Sun, 15 Nov 2026 10:38:47 -0300 Subject: [PATCH] ci: use php container image instead of setup-php action --- .gitea/workflows/tests.yml | 26 ++++++++++++++++++-------- 1 file changed, 18 insertions(+), 8 deletions(-) diff --git a/.gitea/workflows/tests.yml b/.gitea/workflows/tests.yml index b55466d..32b7340 100644 --- a/.gitea/workflows/tests.yml +++ b/.gitea/workflows/tests.yml @@ -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