From d846d30fb144dab93f6048ebcce7abca2dd92b2a Mon Sep 17 00:00:00 2001 From: jrfnl Date: Tue, 18 Nov 2025 21:19:49 +0100 Subject: [PATCH] GH Actions: update for the release of PHP 8.5 ... which is expected to be released this Thursday. * Builds against PHP 8.5 are no longer allowed to fail. * Add _allowed to fail_ build against PHP 8.6. Includes minor workflow simplification. --- .github/workflows/tests.yml | 15 +++++---------- 1 file changed, 5 insertions(+), 10 deletions(-) diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index 28b41f9..ee908c5 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -17,9 +17,10 @@ jobs: - '8.3' - '8.4' - '8.5' + - '8.6' name: "PHP: ${{ matrix.php-versions }}" - continue-on-error: ${{ matrix.php-versions == '8.5' }} + continue-on-error: ${{ matrix.php-versions == '8.6' }} steps: - name: Checkout @@ -35,19 +36,13 @@ jobs: # Install dependencies and handle caching in one go. # @link https://github.com/marketplace/actions/install-php-dependencies-with-composer - - name: "Install Composer dependencies (PHP < 8.5)" - if: ${{ matrix.php-versions < '8.5' }} + - name: Install Composer dependencies uses: "ramsey/composer-install@v3" with: + # For PHP "nightly", we need to install with ignore platform reqs as not all dependencies may allow it yet. + composer-options: ${{ matrix.php == '8.6' && '--ignore-platform-req=php+' || '' }} # Bust the cache at least once a month - output format: YYYY-MM. custom-cache-suffix: $(date -u "+%Y-%m") - - name: "Install Composer dependencies (PHP 8.5)" - if: ${{ matrix.php-versions >= '8.5' }} - uses: "ramsey/composer-install@v3" - with: - composer-options: --ignore-platform-reqs - custom-cache-suffix: $(date -u "+%Y-%m") - - name: Run tests run: vendor/bin/phpunit tests