From 0762b7fe17a6a9b91e0df4140807f1cbd82a499c Mon Sep 17 00:00:00 2001 From: jrfnl Date: Fri, 9 Dec 2022 02:22:31 +0100 Subject: [PATCH] GH Actions: update PHP versions in workflows PHP 8.2 has been released today :tada: and the `setup-php` action has announced support for PHP 8.3, so adding PHP 8.3 to the matrix and no longer allowing PHP 8.2 to fail the build. Builds against PHP 8.3 are still allowed to fail for now. Includes minor tweak setting PHP to `latest` for tasks where the PHP version isn't that relevant. --- .github/workflows/release.yml | 3 ++- .github/workflows/test.yml | 11 ++++++----- 2 files changed, 8 insertions(+), 6 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 70656e2..3079e41 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -62,7 +62,7 @@ jobs: verify: name: Validate binary on PHP ${{ matrix.php }} runs-on: ubuntu-latest - continue-on-error: ${{ matrix.php == '8.2' }} + continue-on-error: ${{ matrix.php == '8.3' }} needs: - bundle @@ -81,6 +81,7 @@ jobs: - '8.0' - '8.1' - '8.2' + - '8.3' steps: - name: Checkout code diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index f96e5f9..2733fe9 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -23,7 +23,7 @@ jobs: - name: Setup PHP uses: shivammathur/setup-php@v2 with: - php-version: '7.4' + php-version: 'latest' coverage: none tools: cs2pr @@ -86,7 +86,7 @@ jobs: test: name: Run tests on PHP ${{ matrix.php }} runs-on: ubuntu-latest - continue-on-error: ${{ matrix.php == '8.2' }} + continue-on-error: ${{ matrix.php == '8.3' }} needs: - bundle @@ -105,6 +105,7 @@ jobs: - '8.0' - '8.1' - '8.2' + - '8.3' steps: - name: Checkout code @@ -123,11 +124,11 @@ jobs: run: composer remove --dev php-parallel-lint/php-code-style --no-update --no-interaction - name: Install Composer dependencies - if: ${{ matrix.php != '8.2' }} + if: ${{ matrix.php != '8.3' }} uses: ramsey/composer-install@v2 - - name: "Install Composer dependencies (PHP 8.2, ignore PHP reqs)" - if: ${{ matrix.php == '8.2' }} + - name: "Install Composer dependencies (PHP 8.3, ignore PHP reqs)" + if: ${{ matrix.php == '8.3' }} uses: ramsey/composer-install@v2 with: composer-options: --ignore-platform-req=php