Skip to content

Commit

Permalink
GH Actions: update for the release of PHP 8.4
Browse files Browse the repository at this point in the history
... 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.
  • Loading branch information
jrfnl committed Nov 11, 2024
1 parent 94389ef commit d1b2152
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 13 deletions.
24 changes: 12 additions & 12 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,11 +30,11 @@ jobs:

strategy:
matrix:
php: ['5.4', '7.0', '7.4', '8.0', '8.3', '8.4']
php: ['5.4', '7.0', '7.4', '8.0', '8.3', '8.4', '8.5']

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

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

steps:
- name: Checkout code
Expand All @@ -49,15 +49,15 @@ jobs:
tools: cs2pr

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

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

# Experimental builds. These are allowed to fail.
- php: '8.4'
- php: '8.5'
phpcs_version: 'dev-master'
risky: false
experimental: true
Expand All @@ -135,12 +135,12 @@ jobs:
risky: true
experimental: true

- php: '8.3'
- php: '8.4'
phpcs_version: 'lowest'
risky: true
experimental: true

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

# For PHP "nightly", we need to install with ignore platform reqs as not all dependencies allow it yet.
- name: Install Composer dependencies - with ignore platform
if: ${{ matrix.php >= 8.4 }}
if: ${{ matrix.php >= 8.5 }}
uses: "ramsey/composer-install@v3"
with:
composer-options: --ignore-platform-req=php+
Expand Down Expand Up @@ -273,9 +273,9 @@ jobs:
strategy:
matrix:
include:
- php: '8.3'
- php: '8.4'
phpcs_version: 'dev-master'
- php: '8.3'
- php: '8.4'
phpcs_version: 'lowest'
extensions: ':iconv' # Run one build with iconv disabled.
- php: '5.4'
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
[![Coverage Status](https://coveralls.io/repos/github/PHPCSStandards/PHPCSUtils/badge.svg?branch=develop)](https://coveralls.io/github/PHPCSStandards/PHPCSUtils?branch=develop)

[![Minimum PHP Version](https://img.shields.io/packagist/dependency-v/phpcsstandards/phpcsutils/php.svg)][phpcsutils-packagist]
[![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]
[![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]

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

0 comments on commit d1b2152

Please sign in to comment.