Skip to content
Merged
Show file tree
Hide file tree
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
6 changes: 5 additions & 1 deletion .github/actions/setup/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,10 @@ inputs:
working-directory:
description: "The directory where composer.json is located, if it is not in the repository root."
required: false
ignore-platform-req:
description: "Whether to ignore platform requirements when installing dependencies with Composer."
required: false
default: "false"

runs:
using: composite
Expand Down Expand Up @@ -49,5 +53,5 @@ runs:
- name: Install dependencies with Composer
uses: ramsey/composer-install@3.0.0
with:
composer-options: "--no-suggest"
composer-options: "--no-suggest ${{ inputs.ignore-platform-req == 'true' && '--ignore-platform-req=php+' || '' }}"
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do you need to keep this now that the driver version 2.1.2 supports PHP 8.5?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is needed because psalm does not support PHP 8.5 yet.

working-directory: "${{ inputs.working-directory }}"
2 changes: 2 additions & 0 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ jobs:
- "8.2"
- "8.3"
- "8.4"
- "8.5"
mongodb-version:
- "6.0"
topology:
Expand Down Expand Up @@ -79,6 +80,7 @@ jobs:
php-version: ${{ matrix.php-version }}
driver-version: ${{ env.DRIVER_VERSION }}
php-ini-values: "zend.assertions=1"
ignore-platform-req: ${{ matrix.php-version == '8.5' && 'true' || 'false' }}

- name: "Run PHPUnit"
run: "vendor/bin/phpunit"
Expand Down