Skip to content

Commit 8bf3731

Browse files
committed
PHPCS 4.x | GH Actions: fix test workflow for PHP nightly
Not all PHPUnit dependencies allow for PHP 8.1/nightly yet, so `composer install` with the `--ignore-platform-reqs` options to allow to run the tests anyway.
1 parent 7af643f commit 8bf3731

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

.github/workflows/test.yml

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,9 +67,17 @@ jobs:
6767

6868
# Install dependencies and handle caching in one go.
6969
# @link https://github.com/marketplace/actions/install-composer-dependencies
70-
- name: Install Composer dependencies
70+
- name: Install Composer dependencies - normal
71+
if: ${{ matrix.experimental == false }}
7172
uses: "ramsey/composer-install@v1"
7273

74+
# For PHP nightly, install with ignore platform reqs as not all PHPUnit allow for it yet.
75+
- name: Install Composer dependencies - with ignore platform
76+
if: ${{ matrix.experimental == true }}
77+
uses: "ramsey/composer-install@v1"
78+
with:
79+
composer-options: --ignore-platform-reqs
80+
7381
# Note: The code style check is run multiple times against every PHP version
7482
# as it also acts as an integration test.
7583
- name: 'PHPCS: set the path to PHP'

0 commit comments

Comments
 (0)