Skip to content

Commit 6d8ee59

Browse files
committed
Ignore platform requirements on PHP8
1 parent ea2b753 commit 6d8ee59

1 file changed

Lines changed: 13 additions & 2 deletions

File tree

.github/workflows/main.yml

Lines changed: 13 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,16 +31,27 @@ jobs:
3131
if: matrix.php < 7.4
3232
run: composer self-update --1
3333

34-
- name: Install Mezzio Sample
34+
- name: Install Mezzio Sample on PHP 7
35+
if: matrix.php < 8
3536
run: composer update --no-dev --prefer-dist --no-interaction
3637
working-directory: framework-tests
3738

39+
- name: Install Mezzio Sample on PHP 8
40+
if: matrix.php == 8.0
41+
run: composer update --no-dev --prefer-dist --no-interaction --ignore-platform-req=php
42+
working-directory: framework-tests
43+
3844
- name: Validate composer.json and composer.lock
3945
run: composer validate
4046

41-
- name: Install dependencies
47+
- name: Install dependencies on PHP 7
48+
if: matrix.php < 8
4249
run: composer install --prefer-dist --no-progress --no-interaction --no-suggest
4350

51+
- name: Install dependencies on PHP 8
52+
if: matrix.php == 8.0
53+
run: composer install --prefer-dist --no-progress --no-interaction --ignore-platform-req=php
54+
4455
- name: Run test suite
4556
run: |
4657
php vendor/bin/codecept build -c framework-tests

0 commit comments

Comments
 (0)