Skip to content

Commit

Permalink
Require builds to pass under PHP 8
Browse files Browse the repository at this point in the history
  • Loading branch information
sanmai committed Jan 2, 2021
1 parent e317f14 commit c885396
Showing 1 changed file with 5 additions and 8 deletions.
13 changes: 5 additions & 8 deletions .github/workflows/ci.yml
Expand Up @@ -13,19 +13,16 @@ jobs:

strategy:
matrix:
php-version: ['7.3', '7.4']
composer-flags: ['']
include:
- { php-version: '8.0', composer-flags: '--ignore-platform-req=php' }
php-version: ['7.3', '7.4', '8.0']

name: CI PHP ${{ matrix.php-version }} ${{ matrix.composer-flags }}
name: CI PHP ${{ matrix.php-version }}

steps:
- name: Checkout code
uses: actions/checkout@v1
uses: actions/checkout@v2

- name: Setup PHP
uses: shivammathur/setup-php@v1
uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.php-version }}
coverage: pcov
Expand All @@ -35,7 +32,7 @@ jobs:
uses: actions/cache@v2
with:
path: ~/.cache/composer
key: composer-${{ matrix.php-version }}-${{ hashFiles('**/composer.*') }}
key: composer-${{ matrix.php-version }}-${{ hashFiles('composer.*') }}
restore-keys: |
composer-${{ matrix.php-version }}-
composer-
Expand Down

0 comments on commit c885396

Please sign in to comment.