Skip to content

Commit 5922d04

Browse files
peter279kicanhazstring
authored andcommitted
Improve Composer option strategy
1 parent 1923834 commit 5922d04

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

.github/workflows/continuous-integration.yml

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -69,11 +69,6 @@ jobs:
6969
php-version: ["7.3", "7.4", "8.0", "8.1"]
7070
operating-system: ["ubuntu-latest"]
7171
experimental: [false]
72-
include:
73-
- php: "8.0"
74-
composer-options: "--ignore-platform-req=php"
75-
- php: "8.1"
76-
composer-options: "--ignore-platform-req=php"
7772

7873
steps:
7974
- name: Checkout
@@ -85,8 +80,13 @@ jobs:
8580
php-version: ${{ matrix.php-version }}
8681
tools: "composer:v2"
8782

88-
- name: Install dependencies
89-
run: composer install --no-progress --prefer-dist --optimize-autoloader ${{ matrix.composer-options }}
83+
- name: Install dependencies for PHP 7
84+
if: matrix.php-version < '8.0'
85+
run: composer install --no-progress --prefer-dist --optimize-autoloader
86+
87+
- name: Install dependencies for PHP 8
88+
if: matrix.php-version >= '8.0'
89+
run: composer install --no-progress --prefer-dist --optimize-autoloader --ignore-platform-req=php
9090

9191
- name: Execute tests
9292
run: vendor/bin/phpunit --colors=always --coverage-text

0 commit comments

Comments
 (0)