Skip to content

Commit 0762b7f

Browse files
committed
GH Actions: update PHP versions in workflows
PHP 8.2 has been released today 🎉 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.
1 parent 7e54856 commit 0762b7f

File tree

2 files changed

+8
-6
lines changed

2 files changed

+8
-6
lines changed

Diff for: .github/workflows/release.yml

+2-1
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ jobs:
6262
verify:
6363
name: Validate binary on PHP ${{ matrix.php }}
6464
runs-on: ubuntu-latest
65-
continue-on-error: ${{ matrix.php == '8.2' }}
65+
continue-on-error: ${{ matrix.php == '8.3' }}
6666
needs:
6767
- bundle
6868

@@ -81,6 +81,7 @@ jobs:
8181
- '8.0'
8282
- '8.1'
8383
- '8.2'
84+
- '8.3'
8485

8586
steps:
8687
- name: Checkout code

Diff for: .github/workflows/test.yml

+6-5
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ jobs:
2323
- name: Setup PHP
2424
uses: shivammathur/setup-php@v2
2525
with:
26-
php-version: '7.4'
26+
php-version: 'latest'
2727
coverage: none
2828
tools: cs2pr
2929

@@ -86,7 +86,7 @@ jobs:
8686
test:
8787
name: Run tests on PHP ${{ matrix.php }}
8888
runs-on: ubuntu-latest
89-
continue-on-error: ${{ matrix.php == '8.2' }}
89+
continue-on-error: ${{ matrix.php == '8.3' }}
9090
needs:
9191
- bundle
9292

@@ -105,6 +105,7 @@ jobs:
105105
- '8.0'
106106
- '8.1'
107107
- '8.2'
108+
- '8.3'
108109

109110
steps:
110111
- name: Checkout code
@@ -123,11 +124,11 @@ jobs:
123124
run: composer remove --dev php-parallel-lint/php-code-style --no-update --no-interaction
124125

125126
- name: Install Composer dependencies
126-
if: ${{ matrix.php != '8.2' }}
127+
if: ${{ matrix.php != '8.3' }}
127128
uses: ramsey/composer-install@v2
128129

129-
- name: "Install Composer dependencies (PHP 8.2, ignore PHP reqs)"
130-
if: ${{ matrix.php == '8.2' }}
130+
- name: "Install Composer dependencies (PHP 8.3, ignore PHP reqs)"
131+
if: ${{ matrix.php == '8.3' }}
131132
uses: ramsey/composer-install@v2
132133
with:
133134
composer-options: --ignore-platform-req=php

0 commit comments

Comments
 (0)