Skip to content

Commit

Permalink
GH Actions: run the tests against PHP 8.3 (#65357)
Browse files Browse the repository at this point in the history
* GH Actions: run the tests against PHP 8.3

PHP 8.3 was released nearly a year ago. It is unclear to me why the PHP tests are not being run against PHP 8.3, so let's fix this.

* GH Actions/test-php: remove redundant step

This should have been removed when support for PHP < 7.2 was dropped.

---------

Co-authored-by: jrfnl <jrf@git.wordpress.org>
Co-authored-by: desrosj <desrosj@git.wordpress.org>
  • Loading branch information
3 people authored Sep 26, 2024
1 parent 1cfb070 commit cb90a76
Showing 1 changed file with 2 additions and 7 deletions.
9 changes: 2 additions & 7 deletions .github/workflows/unit-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -155,6 +155,7 @@ jobs:
- '8.0'
- '8.1'
- '8.2'
- '8.3'
multisite: [false, true]
wordpress: [''] # Latest WordPress version.
include:
Expand All @@ -163,7 +164,7 @@ jobs:
wordpress: 'previous major version'
- php: '7.4'
wordpress: 'previous major version'
- php: '8.2'
- php: '8.3'
wordpress: 'previous major version'

env:
Expand Down Expand Up @@ -197,12 +198,6 @@ jobs:
- name: Override PHP version in composer.json
run: composer config platform.php ${{ matrix.php }}

# The spatie/phpunit-watcher package is not compatible with PHP < 7.2.
# It must be removed before running the tests.
- name: Remove incompatible Composer packages
if: ${{ matrix.php < '7.2' }}
run: composer remove spatie/phpunit-watcher --dev --no-update

# Since Composer dependencies are installed using `composer update` and no lock file is in version control,
# passing a custom cache suffix ensures that the cache is flushed at least once per week.
- name: Install Composer dependencies
Expand Down

0 comments on commit cb90a76

Please sign in to comment.