Skip to content

Commit

Permalink
GH Actions: enable testing against PHP 8.1
Browse files Browse the repository at this point in the history
For now, this build is still allowed to fail.
  • Loading branch information
jrfnl committed Aug 7, 2021
1 parent eb84f0b commit e4b9518
Showing 1 changed file with 12 additions and 2 deletions.
14 changes: 12 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,10 @@ jobs:
strategy:
matrix:
operating-system: ['ubuntu-latest']
php-versions: ['7.1', '7.2', '7.3', '7.4', '8.0']
php-versions: ['7.1', '7.2', '7.3', '7.4', '8.0', '8.1']

continue-on-error: ${{ matrix.php-versions == '8.1' }}

steps:
- name: Checkout
uses: actions/checkout@v2
Expand All @@ -50,8 +53,15 @@ jobs:
ini-values: error_reporting=-1, display_errors=On
coverage: none

- name: Install Composer dependencies
- name: Install PHP packages (PHP < 8.1)
if: ${{ matrix.php-versions != '8.1' }}
uses: "ramsey/composer-install@v1"

- name: Install PHP packages - ignore-platform-reqs (PHP 8.1)
if: ${{ matrix.php-versions == '8.1' }}
uses: "ramsey/composer-install@v1"
with:
composer-options: --ignore-platform-reqs

- name: PHPUnit tests
run: vendor/bin/phpunit

0 comments on commit e4b9518

Please sign in to comment.