Skip to content

Commit 0a2472b

Browse files
authored
PHPLIB-1709: Test with PHP 8.5 (#1781)
* PHPLIB-1709: Test with PHP 8.5 * Ignore upper PHP version bound when running on PHP 8.5
1 parent 1d94eb1 commit 0a2472b

File tree

2 files changed

+7
-1
lines changed

2 files changed

+7
-1
lines changed

.github/actions/setup/action.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,10 @@ inputs:
1414
working-directory:
1515
description: "The directory where composer.json is located, if it is not in the repository root."
1616
required: false
17+
ignore-platform-req:
18+
description: "Whether to ignore platform requirements when installing dependencies with Composer."
19+
required: false
20+
default: "false"
1721

1822
runs:
1923
using: composite
@@ -49,5 +53,5 @@ runs:
4953
- name: Install dependencies with Composer
5054
uses: ramsey/[email protected]
5155
with:
52-
composer-options: "--no-suggest"
56+
composer-options: "--no-suggest ${{ inputs.ignore-platform-req == 'true' && '--ignore-platform-req=php+' || '' }}"
5357
working-directory: "${{ inputs.working-directory }}"

.github/workflows/tests.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@ jobs:
2929
- "8.2"
3030
- "8.3"
3131
- "8.4"
32+
- "8.5"
3233
mongodb-version:
3334
- "6.0"
3435
topology:
@@ -79,6 +80,7 @@ jobs:
7980
php-version: ${{ matrix.php-version }}
8081
driver-version: ${{ env.DRIVER_VERSION }}
8182
php-ini-values: "zend.assertions=1"
83+
ignore-platform-req: ${{ matrix.php-version == '8.5' && 'true' || 'false' }}
8284

8385
- name: "Run PHPUnit"
8486
run: "vendor/bin/phpunit"

0 commit comments

Comments
 (0)