Skip to content

Commit fdac475

Browse files
authored
GH Actions: update for the release of PHP 8.3 (#312)
... which is expected later today. * Builds against PHP 8.3 are no longer allowed to fail. * Update PHP version on which code coverage is run (high should now be 8.3). * Add _allowed to fail_ build against PHP 8.4. Co-authored-by: jrfnl <[email protected]>
1 parent 16c4768 commit fdac475

File tree

1 file changed

+9
-5
lines changed

1 file changed

+9
-5
lines changed

.github/workflows/test.yml

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -30,13 +30,17 @@ jobs:
3030
# - PHP 8.0 needs PHPCS 3.5.7+ to run without errors.
3131
# - PHP 8.1 needs PHPCS 3.6.1+ to run without errors.
3232
# - PHP 8.2 needs PHPCS 3.6.1+ to run without errors.
33+
# - PHP 8.3 needs PHPCS 3.8.0+ to run without errors (though the errors don't affect this package).
3334
#
3435
# The matrix is set up so as not to duplicate the builds which are run for code coverage.
3536
php: ['5.5', '5.6', '7.0', '7.1', '7.2', '7.3']
3637
phpcs_version: ['3.5.6', 'dev-master']
3738

3839
include:
3940
# Make the matrix complete without duplicating builds run in code coverage.
41+
- php: '8.3'
42+
phpcs_version: '3.6.1'
43+
4044
- php: '8.2'
4145
phpcs_version: '3.6.1'
4246

@@ -54,12 +58,12 @@ jobs:
5458
phpcs_version: 'dev-master'
5559

5660
# Experimental builds.
57-
- php: '8.3' # Nightly.
61+
- php: '8.4' # Nightly.
5862
phpcs_version: 'dev-master'
5963

6064
name: "Test: PHP ${{ matrix.php }} on PHPCS ${{ matrix.phpcs_version }}"
6165

62-
continue-on-error: ${{ matrix.php == '8.3' }}
66+
continue-on-error: ${{ matrix.php == '8.4' }}
6367

6468
steps:
6569
- name: Checkout code
@@ -93,15 +97,15 @@ jobs:
9397
# Install dependencies and handle caching in one go.
9498
# @link https://github.com/marketplace/actions/install-php-dependencies-with-composer
9599
- name: Install Composer dependencies - normal
96-
if: ${{ matrix.php != '8.3' }}
100+
if: ${{ matrix.php != '8.4' }}
97101
uses: "ramsey/composer-install@v2"
98102
with:
99103
# Bust the cache at least once a month - output format: YYYY-MM.
100104
custom-cache-suffix: $(date -u "+%Y-%m")
101105

102106
# For the PHP "nightly", we need to install with ignore platform reqs as not all dependencies allow it yet.
103107
- name: Install Composer dependencies - with ignore platform
104-
if: ${{ matrix.php == '8.3' }}
108+
if: ${{ matrix.php == '8.4' }}
105109
uses: "ramsey/composer-install@v2"
106110
with:
107111
composer-options: --ignore-platform-req=php
@@ -121,7 +125,7 @@ jobs:
121125
strategy:
122126
matrix:
123127
include:
124-
- php: '8.2'
128+
- php: '8.3'
125129
phpcs_version: 'dev-master'
126130
- php: '7.4'
127131
phpcs_version: '3.5.6'

0 commit comments

Comments
 (0)