@@ -54,14 +54,14 @@ jobs:
5454 # code conditions.
5555 matrix :
5656 os : ['ubuntu-latest', 'windows-latest']
57- php : ['7.2', '7.3', '7.4', '8.0', '8.1', '8.2', '8.3', '8.4', '8.5']
57+ php : ['7.2', '7.3', '7.4', '8.0', '8.1', '8.2', '8.3', '8.4', '8.5', '8.6' ]
5858 custom_ini : [false]
5959
6060 include :
6161 # Skip test runs on builds which are also run in the coverage job.
6262 - php : ' 7.2'
6363 skip_tests : true
64- - php : ' 8.4 '
64+ - php : ' 8.5 '
6565 skip_tests : true
6666
6767 # Run a couple of builds with custom extensions to allow for testing ini handling within PHPCS.
@@ -88,27 +88,24 @@ jobs:
8888 - php : ' 7.4'
8989 os : ' ubuntu-latest'
9090 custom_ini : true
91- - php : ' 8.3'
92- os : ' ubuntu-latest'
93- custom_ini : true
94- - php : ' 8.0'
91+ - php : ' 8.1'
9592 os : ' ubuntu-latest'
9693 custom_ini : true
97- - php : ' 8.2 '
94+ - php : ' 8.3 '
9895 os : ' ubuntu-latest'
9996 custom_ini : true
10097
10198 # yamllint disable-line rule:line-length
10299 name : " PHP: ${{ matrix.php }} ${{ matrix.custom_ini && ' with custom ini settings' || '' }}${{ matrix.libxml_minor && format( ' with libxml {0}', matrix.libxml_minor ) || '' }} (${{ matrix.os == 'ubuntu-latest' && 'Linux' || 'Win' }})"
103100
104- continue-on-error : ${{ matrix.php == '8.5 ' }}
101+ continue-on-error : ${{ matrix.php == '8.6 ' }}
105102
106103 steps :
107104 - name : Prepare git to leave line endings alone
108105 run : git config --global core.autocrlf input
109106
110107 - name : Checkout code
111- uses : actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5 .0.0
108+ uses : actions/checkout@1af3b93b6815bc44a9784bd300feb67ff0d1eeb3 # v6 .0.0
112109
113110 - name : " libxml2: find the latest relevant tag"
114111 if : ${{ matrix.libxml_minor }}
@@ -204,7 +201,7 @@ jobs:
204201 - name : Install Composer dependencies
205202 uses : " ramsey/composer-install@3cf229dc2919194e9e36783941438d17239e8520" # 3.1.1
206203 with :
207- composer-options : ${{ matrix.php == '8.5 ' && '--ignore-platform-req=php+' || '' }}
204+ composer-options : ${{ matrix.php == '8.6 ' && '--ignore-platform-req=php+' || '' }}
208205 custom-cache-suffix : $(date -u "+%Y-%m")
209206
210207 - name : Grab PHPUnit version
@@ -236,14 +233,14 @@ jobs:
236233 run : php "vendor/bin/phpunit" -c ${{ steps.phpunit_config.outputs.FILE }} --no-coverage
237234
238235 # Do one test run against the complete test suite in CBF mode to ensure all tests can run in CBF mode.
239- - name : ' PHPUnit: run the full test suite without code coverage in CBF mode (PHP 8.3 only)'
240- if : ${{ matrix.php == '8.3 ' }}
236+ - name : ' PHPUnit: run the full test suite without code coverage in CBF mode (PHP 8.4 only)'
237+ if : ${{ matrix.php == '8.4 ' }}
241238 run : php "vendor/bin/phpunit" -c ${{ steps.phpunit_config.outputs.FILE }} --exclude-group nothing --no-coverage
242239 env :
243240 PHP_CODESNIFFER_CBF : ' 1'
244241
245242 - name : ' PHPUnit: run select tests in CBF mode'
246- if : ${{ matrix.skip_tests != true && matrix.php != '8.3 ' }}
243+ if : ${{ matrix.skip_tests != true && matrix.php != '8.4 ' }}
247244 run : >
248245 php "vendor/bin/phpunit" -c ${{ steps.phpunit_config.outputs.FILE }} --no-coverage
249246 --group CBF --exclude-group nothing
@@ -258,7 +255,7 @@ jobs:
258255
259256 - name : Download the PHPCS phar
260257 if : ${{ matrix.custom_ini == false }}
261- uses : actions/download-artifact@634f93cb2916e3fdff6788551b99b062d0335ce0 # v5 .0.0
258+ uses : actions/download-artifact@018cc2cf5baa6db3ef3c5f8a56943fffe632ef53 # v6 .0.0
262259 with :
263260 name : phpcs-phar
264261
@@ -275,22 +272,22 @@ jobs:
275272 strategy :
276273 matrix :
277274 os : ['ubuntu-latest', 'windows-latest']
278- # Note: we can only run code coverage builds against PHP 7.2 and PHP 8.4 or higher:
275+ # Note: we can only run code coverage builds against PHP 7.2 and PHP 8.5 or higher:
279276 # - PHP 7.2 will work as it uses PHPUnit 8, which doesn't use PHP Parser yet.
280277 # - As of PHPUnit 9.3 (PHP 7.3+), PHPUnit started using PHP Parser for code coverage, and PHP Parser
281278 # also polyfills tokens, but to different (integer) values.
282279 # - Additionally, PHP Parser will block PHPUnit from running with a fatal error if it detects
283280 # non-integer values for polyfilled tokens.... _sigh_.
284281 # - So, aside from PHP 7.2, we can only run code coverage on the last PHP version (or higher)
285282 # which added a new token, which is polyfilled by both.
286- # At the time of writing, this means PHP 8.4 or higher.
287- php : ['7.2', '8.4 ']
283+ # At the time of writing, this means PHP 8.5 or higher.
284+ php : ['7.2', '8.5 ']
288285 custom_ini : [false]
289286
290287 include :
291288 # Also run one coverage build with custom ini settings for testing the DisallowShortOpenTag sniff.
292289 # Also run with a disabled extension for testing the handling of unsettable ini settings by PHPCS.
293- - php : ' 8.4 '
290+ - php : ' 8.5 '
294291 os : ' ubuntu-latest'
295292 custom_ini : true
296293 extensions : ' :mysqli' # Run with mysqli disabled.
@@ -303,7 +300,7 @@ jobs:
303300 run : git config --global core.autocrlf input
304301
305302 - name : Checkout code
306- uses : actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5 .0.0
303+ uses : actions/checkout@1af3b93b6815bc44a9784bd300feb67ff0d1eeb3 # v6 .0.0
307304
308305 - name : Setup ini config
309306 if : ${{ matrix.custom_ini == true && matrix.os != 'windows-latest' }}
@@ -393,7 +390,7 @@ jobs:
393390
394391 - name : " Upload coverage results to Coveralls (normal run)"
395392 if : ${{ success() }}
396- uses : coverallsapp/github-action@648a8eb78e6d50909eff900e4ec85cab4524a45b # v2.3.6
393+ uses : coverallsapp/github-action@5cbfd81b66ca5d10c19b062c04de0199c215fb6e # v2.3.7
397394 with :
398395 format : clover
399396 file : build/logs/clover.xml
@@ -402,7 +399,7 @@ jobs:
402399
403400 - name : " Upload coverage results to Coveralls (CBF run)"
404401 if : ${{ matrix.os != 'windows-latest' && success() }}
405- uses : coverallsapp/github-action@648a8eb78e6d50909eff900e4ec85cab4524a45b # v2.3.6
402+ uses : coverallsapp/github-action@5cbfd81b66ca5d10c19b062c04de0199c215fb6e # v2.3.7
406403 with :
407404 format : clover
408405 file : build/logs/clover-cbf.xml
@@ -418,6 +415,6 @@ jobs:
418415
419416 steps :
420417 - name : Coveralls Finished
421- uses : coverallsapp/github-action@648a8eb78e6d50909eff900e4ec85cab4524a45b # v2.3.6
418+ uses : coverallsapp/github-action@5cbfd81b66ca5d10c19b062c04de0199c215fb6e # v2.3.7
422419 with :
423420 parallel-finished : true
0 commit comments