Skip to content

Commit 8190486

Browse files
committed
CI: ignore platform requirements on PHP 8
1 parent 3aff60b commit 8190486

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

.github/workflows/main.yml

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,8 +24,13 @@ jobs:
2424
- name: Validate composer.json and composer.lock
2525
run: composer validate
2626

27-
- name: Install dependencies
28-
run: composer install --prefer-dist --no-progress --no-interaction --no-suggest
27+
- name: Install dependencies on PHP 7
28+
if: matrix.php < 8
29+
run: composer install --prefer-dist --no-progress --no-interaction
30+
31+
- name: Install dependencies on PHP 8
32+
if: matrix.php == 8
33+
run: composer install --prefer-dist --no-progress --no-interaction --ignore-platform-req=php
2934

3035
- name: Run test suite
3136
run: php vendor/bin/codecept run

0 commit comments

Comments
 (0)