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 8, 2021
1 parent c84f7b7 commit 8100036
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 @@ -53,8 +56,15 @@ jobs:
- name: Modernize dependencies
run: composer require --dev --no-update "phpunit/phpunit:>=4"

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

- name: Install Composer dependencies - 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 8100036

Please sign in to comment.