Skip to content

Commit

Permalink
Fix build composer platform reqs #10
Browse files Browse the repository at this point in the history
  • Loading branch information
odan committed Dec 6, 2020
1 parent 40d8a64 commit 308a7ac
Showing 1 changed file with 12 additions and 5 deletions.
17 changes: 12 additions & 5 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
name: PHP

on: [push, pull_request]
on: [ push, pull_request ]

jobs:
run:
runs-on: ${{ matrix.operating-system }}
strategy:
matrix:
operating-system: [ubuntu-latest]
php-versions: ['7.2', '7.3', '7.4', '8.0']
operating-system: [ ubuntu-latest ]
php-versions: [ '7.2', '7.3', '7.4', '8.0' ]
name: PHP ${{ matrix.php-versions }} Test on ${{ matrix.operating-system }}

steps:
Expand All @@ -34,8 +34,15 @@ jobs:
- name: Validate composer.json and composer.lock
run: composer validate

- name: Install dependencies
run: composer install --prefer-dist --no-progress --no-suggest
- name: Install dependencies for PHP 7
run: composer update --prefer-dist --no-progress
with:
php-version: [ '7.2', '7.3', '7.4' ]

- name: Install dependencies for PHP 8
run: composer update --prefer-dist --no-progress --ignore-platform-reqs
with:
php-version: [ '8.0' ]

- name: Run test suite
run: composer check
Expand Down

0 comments on commit 308a7ac

Please sign in to comment.