Skip to content

Commit c7602a7

Browse files
committed
Merge branch '4.x/ghactions-fix-run-on-nightly' of https://github.com/jrfnl/PHP_CodeSniffer into 4.0
2 parents 76b5801 + 8bf3731 commit c7602a7

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)