diff --git a/.github/actions/setup/action.yml b/.github/actions/setup/action.yml index c66c0fa8f..e68c386b8 100644 --- a/.github/actions/setup/action.yml +++ b/.github/actions/setup/action.yml @@ -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 @@ -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+' || '' }}" working-directory: "${{ inputs.working-directory }}" diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index 956e0ec61..319fcbb3d 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -29,6 +29,7 @@ jobs: - "8.2" - "8.3" - "8.4" + - "8.5" mongodb-version: - "6.0" topology: @@ -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"