Skip to content

Commit 308a7ac

Browse files
committed
Fix build composer platform reqs #10
1 parent 40d8a64 commit 308a7ac

1 file changed

Lines changed: 12 additions & 5 deletions

File tree

.github/workflows/build.yml

Lines changed: 12 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
11
name: PHP
22

3-
on: [push, pull_request]
3+
on: [ push, pull_request ]
44

55
jobs:
66
run:
77
runs-on: ${{ matrix.operating-system }}
88
strategy:
99
matrix:
10-
operating-system: [ubuntu-latest]
11-
php-versions: ['7.2', '7.3', '7.4', '8.0']
10+
operating-system: [ ubuntu-latest ]
11+
php-versions: [ '7.2', '7.3', '7.4', '8.0' ]
1212
name: PHP ${{ matrix.php-versions }} Test on ${{ matrix.operating-system }}
1313

1414
steps:
@@ -34,8 +34,15 @@ jobs:
3434
- name: Validate composer.json and composer.lock
3535
run: composer validate
3636

37-
- name: Install dependencies
38-
run: composer install --prefer-dist --no-progress --no-suggest
37+
- name: Install dependencies for PHP 7
38+
run: composer update --prefer-dist --no-progress
39+
with:
40+
php-version: [ '7.2', '7.3', '7.4' ]
41+
42+
- name: Install dependencies for PHP 8
43+
run: composer update --prefer-dist --no-progress --ignore-platform-reqs
44+
with:
45+
php-version: [ '8.0' ]
3946

4047
- name: Run test suite
4148
run: composer check

0 commit comments

Comments
 (0)