Skip to content

Commit 49c3070

Browse files
committed
GH Actions: update for the release of PHP 8.4
... which is expected later this month. * Builds against PHP 8.4 are no longer allowed to fail. * Update PHP version on which code coverage is run (high should now be 8.4). * Add _allowed to fail_ build against PHP 8.5. * Update the "tested against" badge in the README.
1 parent 94389ef commit 49c3070

File tree

2 files changed

+13
-13
lines changed

2 files changed

+13
-13
lines changed

.github/workflows/test.yml

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -30,11 +30,11 @@ jobs:
3030

3131
strategy:
3232
matrix:
33-
php: ['5.4', '7.0', '7.4', '8.0', '8.3', '8.4']
33+
php: ['5.4', '7.0', '7.4', '8.0', '8.4', '8.5']
3434

3535
name: "Lint: PHP ${{ matrix.php }}"
3636

37-
continue-on-error: ${{ matrix.php == '8.4' }}
37+
continue-on-error: ${{ matrix.php == '8.5' }}
3838

3939
steps:
4040
- name: Checkout code
@@ -49,15 +49,15 @@ jobs:
4949
tools: cs2pr
5050

5151
- name: Install Composer dependencies - normal
52-
if: ${{ matrix.php < 8.4 }}
52+
if: ${{ matrix.php < 8.5 }}
5353
uses: "ramsey/composer-install@v3"
5454
with:
5555
# Bust the cache at least once a month - output format: YYYY-MM.
5656
custom-cache-suffix: $(date -u "+%Y-%m")
5757

5858
# For the PHP "nightly", we need to install with ignore platform reqs as not all dependencies allow it yet.
5959
- name: Install Composer dependencies - with ignore platform
60-
if: ${{ matrix.php >= 8.4 }}
60+
if: ${{ matrix.php >= 8.5 }}
6161
uses: "ramsey/composer-install@v3"
6262
with:
6363
composer-options: --ignore-platform-req=php+
@@ -91,7 +91,7 @@ jobs:
9191
# IMPORTANT: test runs shouldn't fail because of PHPCS being incompatible with a PHP version.
9292
#
9393
# The matrix is set up so as not to duplicate the builds which are run for code coverage.
94-
php: ['5.5', '5.6', '7.0', '7.1', '7.2', '7.3', '7.4', '8.0', '8.1', '8.2']
94+
php: ['5.5', '5.6', '7.0', '7.1', '7.2', '7.3', '7.4', '8.0', '8.1', '8.2', '8.3']
9595
phpcs_version: ['lowest', 'dev-master']
9696
risky: [false]
9797
experimental: [false]
@@ -109,7 +109,7 @@ jobs:
109109
extensions: ':iconv' # Run with iconv disabled.
110110

111111
# Experimental builds. These are allowed to fail.
112-
- php: '8.4'
112+
- php: '8.5'
113113
phpcs_version: 'dev-master'
114114
risky: false
115115
experimental: true
@@ -135,12 +135,12 @@ jobs:
135135
risky: true
136136
experimental: true
137137

138-
- php: '8.3'
138+
- php: '8.4'
139139
phpcs_version: 'lowest'
140140
risky: true
141141
experimental: true
142142

143-
- php: '8.3'
143+
- php: '8.4'
144144
phpcs_version: 'dev-master'
145145
risky: true
146146
experimental: true
@@ -187,15 +187,15 @@ jobs:
187187
# Install dependencies and handle caching in one go.
188188
# @link https://github.com/marketplace/actions/install-php-dependencies-with-composer
189189
- name: Install Composer dependencies - normal
190-
if: ${{ matrix.php < 8.4 }}
190+
if: ${{ matrix.php < 8.5 }}
191191
uses: "ramsey/composer-install@v3"
192192
with:
193193
# Bust the cache at least once a month - output format: YYYY-MM.
194194
custom-cache-suffix: $(date -u "+%Y-%m")
195195

196196
# For PHP "nightly", we need to install with ignore platform reqs as not all dependencies allow it yet.
197197
- name: Install Composer dependencies - with ignore platform
198-
if: ${{ matrix.php >= 8.4 }}
198+
if: ${{ matrix.php >= 8.5 }}
199199
uses: "ramsey/composer-install@v3"
200200
with:
201201
composer-options: --ignore-platform-req=php+
@@ -273,9 +273,9 @@ jobs:
273273
strategy:
274274
matrix:
275275
include:
276-
- php: '8.3'
276+
- php: '8.4'
277277
phpcs_version: 'dev-master'
278-
- php: '8.3'
278+
- php: '8.4'
279279
phpcs_version: 'lowest'
280280
extensions: ':iconv' # Run one build with iconv disabled.
281281
- php: '5.4'

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
[![Coverage Status](https://coveralls.io/repos/github/PHPCSStandards/PHPCSUtils/badge.svg?branch=develop)](https://coveralls.io/github/PHPCSStandards/PHPCSUtils?branch=develop)
1515

1616
[![Minimum PHP Version](https://img.shields.io/packagist/dependency-v/phpcsstandards/phpcsutils/php.svg)][phpcsutils-packagist]
17-
[![Tested on PHP 5.4 to 8.3](https://img.shields.io/badge/tested%20on-PHP%205.4%20|%205.5%20|%205.6%20|%207.0%20|%207.1%20|%207.2%20|%207.3%20|%207.4%20|%208.0%20|%208.1%20|%208.2%20|%208.3-brightgreen.svg?maxAge=2419200)][phpcsutils-tests-gha]
17+
[![Tested on PHP 5.4 to 8.4](https://img.shields.io/badge/tested%20on-PHP%205.4%20|%205.5%20|%205.6%20|%207.0%20|%207.1%20|%207.2%20|%207.3%20|%207.4%20|%208.0%20|%208.1%20|%208.2%20|%208.3%20|%208.4-brightgreen.svg?maxAge=2419200)][phpcsutils-tests-gha]
1818

1919
[![License: LGPLv3](https://img.shields.io/github/license/PHPCSStandards/PHPCSUtils)](https://github.com/PHPCSStandards/PHPCSUtils/blob/stable/LICENSE)
2020
![Awesome](https://img.shields.io/badge/awesome%3F-yes!-brightgreen.svg)

0 commit comments

Comments
 (0)