Skip to content

Commit 64ee4ae

Browse files
committed
GH Actions: update for the release of PHP 8.3
... 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. * Update the "tested against" badge in the README.
1 parent 028f7b7 commit 64ee4ae

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.1', '8.2', '8.3']
33+
php: ['5.4', '7.0', '7.4', '8.0', '8.3', '8.4']
3434

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

37-
continue-on-error: ${{ matrix.php == '8.3' }}
37+
continue-on-error: ${{ matrix.php == '8.4' }}
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.3 }}
52+
if: ${{ matrix.php < 8.4 }}
5353
uses: "ramsey/composer-install@v2"
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.3 }}
60+
if: ${{ matrix.php >= 8.4 }}
6161
uses: "ramsey/composer-install@v2"
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']
94+
php: ['5.5', '5.6', '7.0', '7.1', '7.2', '7.3', '7.4', '8.0', '8.1', '8.2']
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.3'
112+
- php: '8.4'
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.2'
138+
- php: '8.3'
139139
phpcs_version: 'lowest'
140140
risky: true
141141
experimental: true
142142

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

192192
# For PHP "nightly", we need to install with ignore platform reqs as not all dependencies allow it yet.
193193
- name: Install Composer dependencies - with ignore platform
194-
if: ${{ matrix.php >= 8.3 }}
194+
if: ${{ matrix.php >= 8.4 }}
195195
uses: "ramsey/composer-install@v2"
196196
with:
197197
composer-options: --ignore-platform-req=php+
@@ -266,9 +266,9 @@ jobs:
266266
strategy:
267267
matrix:
268268
include:
269-
- php: '8.2'
269+
- php: '8.3'
270270
phpcs_version: 'dev-master'
271-
- php: '8.2'
271+
- php: '8.3'
272272
phpcs_version: 'lowest'
273273
extensions: ':iconv' # Run one build with iconv disabled.
274274
- php: '5.4'

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
[![Minimum PHP Version](https://img.shields.io/packagist/php-v/phpcsstandards/phpcsutils.svg?maxAge=3600)][phpcsutils-packagist]
1212
[![CS Build Status](https://github.com/PHPCSStandards/PHPCSUtils/actions/workflows/basics.yml/badge.svg?branch=develop)](https://github.com/PHPCSStandards/PHPCSUtils/actions/workflows/basics.yml)
1313
[![Test Build Status](https://github.com/PHPCSStandards/PHPCSUtils/actions/workflows/test.yml/badge.svg?branch=develop)][phpcsutils-tests-gha]
14-
[![Tested on PHP 5.4 to 8.2](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-brightgreen.svg?maxAge=2419200)][phpcsutils-tests-gha]
14+
[![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]
1515
[![Coverage Status](https://coveralls.io/repos/github/PHPCSStandards/PHPCSUtils/badge.svg?branch=develop)](https://coveralls.io/github/PHPCSStandards/PHPCSUtils?branch=develop)
1616

1717
[![Docs website](https://github.com/PHPCSStandards/PHPCSUtils/actions/workflows/update-docs.yml/badge.svg)][phpcsutils-web]

0 commit comments

Comments
 (0)