Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
27 changes: 13 additions & 14 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ jobs:
# - PHP 8.2 needs PHPCS 3.6.1+ to run without errors.
# - PHP 8.3 needs PHPCS 3.8.0+ to run without errors (though the errors don't affect this package).
# - PHP 8.4 needs PHPCS 3.11.0+ to run without errors (though the errors don't affect this package).
# - PHP 8.5 needs PHPCS 3.13.4+ to run without errors.
#
# 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"]
Expand All @@ -57,8 +58,13 @@ jobs:
phpcs_version: "4.x-dev"

include:
- php: "8.4"
- php: "8.5"
phpcs_version: "4.0.0"
- php: "8.5"
phpcs_version: "3.13.4"

- php: "8.4"
phpcs_version: "4.x-dev"
- php: "8.4"
phpcs_version: "3.6.1"

Expand Down Expand Up @@ -86,12 +92,12 @@ jobs:
phpcs_version: "4.x-dev"

# Experimental builds.
- php: "8.5" # Nightly.
- php: "8.6" # Nightly.
phpcs_version: "4.x-dev"

name: "Test: PHP ${{ matrix.php }} on PHPCS ${{ matrix.phpcs_version }}"

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

steps:
- name: Checkout code
Expand Down Expand Up @@ -124,21 +130,14 @@ 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.5' }}
- name: Install Composer dependencies
uses: "ramsey/composer-install@v3"
with:
# For the PHP "nightly", we need to install with ignore platform reqs as not all dependencies may allow it yet.
composer-options: ${{ matrix.php == '8.6' && '--ignore-platform-req=php+' || '' }}
# 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.5' }}
uses: "ramsey/composer-install@v3"
with:
composer-options: --ignore-platform-req=php
custom-cache-suffix: $(date -u "+%Y-%m")

- name: Grab PHPUnit version
id: phpunit_version
run: echo "VERSION=$(vendor/bin/phpunit --version | grep --only-matching --max-count=1 --extended-regexp '\b[0-9]+\.[0-9]+')" >> $GITHUB_OUTPUT
Expand Down Expand Up @@ -166,7 +165,7 @@ jobs:
strategy:
matrix:
include:
- php: "8.4"
- php: "8.5"
phpcs_version: "4.x-dev"
- php: "7.4"
phpcs_version: "3.5.7"
Expand Down