Skip to content

Commit 8e91539

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. Note: PHPCS does not (yet) have full syntax support for PHP 8.2, but it does have runtime support (for the most part, see squizlabs/PHP_CodeSniffer 3629). Builds against PHP 8.3 are still allowed to fail for now.
1 parent 907a92d commit 8e91539

File tree

1 file changed

+10
-4
lines changed

1 file changed

+10
-4
lines changed

.github/workflows/test.yml

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -30,11 +30,17 @@ jobs:
3030
# - PHP 7.4 needs PHPCS 3.5.0+ to run without errors.
3131
# - PHP 8.0 needs PHPCS 3.5.7+ to run without errors.
3232
# - PHP 8.1 needs PHPCS 3.6.1+ to run without errors.
33+
# - PHP 8.2 needs PHPCS 3.6.1+ to run without errors.
3334
php: ['5.4', '5.5', '5.6', '7.0', '7.1', '7.2']
3435
phpcs_version: ['3.1.0', 'dev-master']
3536

3637
include:
3738
# Complete the matrix, while preventing issues with PHPCS versions incompatible with certain PHP versions.
39+
- php: '8.2'
40+
phpcs_version: 'dev-master'
41+
- php: '8.2'
42+
phpcs_version: '3.6.1'
43+
3844
- php: '8.1'
3945
phpcs_version: 'dev-master'
4046
- php: '8.1'
@@ -59,12 +65,12 @@ jobs:
5965
- php: '7.4'
6066
phpcs_version: '4.0.x-dev'
6167

62-
- php: '8.2' # Nightly.
68+
- php: '8.3' # Nightly.
6369
phpcs_version: 'dev-master'
6470

6571
name: "Test${{ matrix.phpcs_version == 'dev-master' && ' + Lint' || '' }}: PHP ${{ matrix.php }} - PHPCS ${{ matrix.phpcs_version }}"
6672

67-
continue-on-error: ${{ matrix.php == '8.2' || matrix.phpcs_version == '4.0.x-dev' }}
73+
continue-on-error: ${{ matrix.php == '8.3' || matrix.phpcs_version == '4.0.x-dev' }}
6874

6975
steps:
7076
- name: Checkout code
@@ -104,15 +110,15 @@ jobs:
104110
# Install dependencies and handle caching in one go.
105111
# @link https://github.com/marketplace/actions/install-composer-dependencies
106112
- name: Install Composer dependencies - normal
107-
if: ${{ matrix.php < 8.2 }}
113+
if: ${{ matrix.php < 8.3 }}
108114
uses: "ramsey/composer-install@v2"
109115
with:
110116
# Bust the cache at least once a month - output format: YYYY-MM.
111117
custom-cache-suffix: $(date -u "+%Y-%m")
112118

113119
# For PHP "nightly", we need to install with ignore platform reqs as not all dependencies allow installation.
114120
- name: Install Composer dependencies - with ignore platform
115-
if: ${{ matrix.php >= 8.2 }}
121+
if: ${{ matrix.php >= 8.3 }}
116122
uses: "ramsey/composer-install@v2"
117123
with:
118124
composer-options: --ignore-platform-reqs

0 commit comments

Comments
 (0)