From d1de2f4c9f74e56a287c1e23e66343b58f48cf8e Mon Sep 17 00:00:00 2001 From: jrfnl Date: Thu, 23 Nov 2023 05:33:27 +0100 Subject: [PATCH] GH Actions: update for the release of PHP 8.3 ... which is expected later today. --- .github/workflows/test.yml | 14 ++++++++++---- 1 file changed, 10 insertions(+), 4 deletions(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index c14fabb..d208ced 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -31,11 +31,17 @@ jobs: # - PHP 8.0 needs PHPCS 3.5.7+ to run without errors. # - PHP 8.1 needs PHPCS 3.6.1+ to run without errors. # - PHP 8.2 needs PHPCS 3.6.1+ to run without errors. + # - PHP 8.3 needs PHPCS 3.8.0+ to run without errors (though the errors don't affect this package). php: ['5.4', '5.5', '5.6', '7.0', '7.1', '7.2'] phpcs_version: ['3.1.0', 'dev-master'] include: # Complete the matrix, while preventing issues with PHPCS versions incompatible with certain PHP versions. + - php: '8.3' + phpcs_version: 'dev-master' + - php: '8.3' + phpcs_version: '3.6.1' + - php: '8.2' phpcs_version: 'dev-master' - php: '8.2' @@ -65,12 +71,12 @@ jobs: - php: '7.4' phpcs_version: '4.0.x-dev' - - php: '8.3' # Nightly. + - php: '8.4' # Nightly. phpcs_version: 'dev-master' name: "Test${{ matrix.phpcs_version == 'dev-master' && ' + Lint' || '' }}: PHP ${{ matrix.php }} - PHPCS ${{ matrix.phpcs_version }}" - continue-on-error: ${{ matrix.php == '8.3' || matrix.phpcs_version == '4.0.x-dev' }} + continue-on-error: ${{ matrix.php == '8.4' || matrix.phpcs_version == '4.0.x-dev' }} steps: - name: Checkout code @@ -110,7 +116,7 @@ jobs: # Install dependencies and handle caching in one go. # @link https://github.com/marketplace/actions/install-php-dependencies-with-composer - name: Install Composer dependencies - normal - if: ${{ matrix.php < 8.3 }} + if: ${{ matrix.php < 8.4 }} uses: "ramsey/composer-install@v2" with: # Bust the cache at least once a month - output format: YYYY-MM. @@ -118,7 +124,7 @@ jobs: # For PHP "nightly", we need to install with ignore platform reqs as not all dependencies allow installation. - name: Install Composer dependencies - with ignore platform - if: ${{ matrix.php >= 8.3 }} + if: ${{ matrix.php >= 8.4 }} uses: "ramsey/composer-install@v2" with: composer-options: --ignore-platform-reqs