Skip to content

Commit

Permalink
Allow installing dependencies on PHP 8.4 even when not all of them su…
Browse files Browse the repository at this point in the history
…pport it
  • Loading branch information
ondrejmirtes committed Sep 6, 2024
1 parent d8b96f9 commit bfb1fc9
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 0 deletions.
12 changes: 12 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,10 @@ jobs:
- name: "Validate Composer"
run: "composer validate"

- name: "Allow installing on PHP 8.4"
if: matrix.php-version == '8.4'
run: "composer config platform.php 8.3.99"

- name: "Downgrade PHPUnit"
if: matrix.php-version == '7.2' || matrix.php-version == '7.3'
run: "composer require --dev phpunit/phpunit:^8.5.31 --no-update --update-with-dependencies"
Expand Down Expand Up @@ -131,6 +135,10 @@ jobs:
ini-file: development
extensions: "mongodb"

- name: "Allow installing on PHP 8.4"
if: matrix.php-version == '8.4'
run: "composer config platform.php 8.3.99"

- name: "Downgrade PHPUnit"
if: matrix.php-version == '7.2' || matrix.php-version == '7.3'
run: "composer require --dev phpunit/phpunit:^8.5.31 --no-update --update-with-dependencies"
Expand Down Expand Up @@ -186,6 +194,10 @@ jobs:
extensions: "mongodb"
ini-file: development

- name: "Allow installing on PHP 8.4"
if: matrix.php-version == '8.4'
run: "composer config platform.php 8.3.99"

- name: "Downgrade PHPUnit"
if: matrix.php-version == '7.2' || matrix.php-version == '7.3'
run: "composer require --dev phpunit/phpunit:^8.5.31 --no-update --update-with-dependencies"
Expand Down
4 changes: 4 additions & 0 deletions .github/workflows/platform-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,10 @@ jobs:
ini-file: development
extensions: pdo, mysqli, pgsql, pdo_mysql, pdo_pgsql, pdo_sqlite, mongodb

- name: "Allow installing on PHP 8.4"
if: matrix.php-version == '8.4'
run: "composer config platform.php 8.3.99"

- name: "Install dependencies"
run: "composer install --no-interaction --no-progress"

Expand Down

0 comments on commit bfb1fc9

Please sign in to comment.