From 8d0369aa90a026013ff0b786935b5734f9e54068 Mon Sep 17 00:00:00 2001 From: jrfnl Date: Wed, 18 Dec 2024 16:12:20 +0100 Subject: [PATCH] GH Actions: ensure second PHP install run always uses latest PHP version Ref: https://github.com/shivammathur/setup-php/issues/895 --- .github/workflows/lint.yml | 2 ++ .github/workflows/test.yml | 4 ++++ 2 files changed, 6 insertions(+) diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml index db98686d717..55bf543c56f 100644 --- a/.github/workflows/lint.yml +++ b/.github/workflows/lint.yml @@ -73,6 +73,8 @@ jobs: ini-values: zend.assertions=1, error_reporting=-1, display_errors=On coverage: none tools: cs2pr + env: + update: true - name: Lint against parse errors run: composer lint -- --checkstyle | cs2pr diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index c7632c565bc..d135f79a416 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -90,6 +90,8 @@ jobs: php-version: ${{ matrix.php_version }} ini-values: zend.assertions=1, error_reporting=-1, display_errors=On coverage: ${{ matrix.coverage == true && 'xdebug' || 'none' }} + env: + update: true # The PHP platform requirement would prevent updating the test utilities to the appropriate versions. # As long as the `composer update` is run selectively to only update the test utils, removing this is fine. @@ -220,6 +222,8 @@ jobs: php-version: ${{ matrix.php_version }} ini-values: zend.assertions=1, error_reporting=-1, display_errors=On coverage: ${{ matrix.coverage == true && 'xdebug' || 'none' }} + env: + update: true # The PHP platform requirement would prevent updating the test utilities to the appropriate versions. # As long as the `composer update` is run selectively to only update the test utils, removing this is fine.