Skip to content

Commit

Permalink
Enable PHP 8.1 builds (#422)
Browse files Browse the repository at this point in the history
  • Loading branch information
driesvints authored Oct 4, 2021
1 parent c6126e2 commit e7e46f4
Showing 1 changed file with 6 additions and 13 deletions.
19 changes: 6 additions & 13 deletions .github/workflows/run-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,15 +12,13 @@ jobs:

strategy:
matrix:
php: [7.4, 8.0]
php: [7.4, 8.0, 8.1]
laravel: [7.*, 8.*]
dependency-version: [prefer-stable]
os: [ubuntu-latest, windows-latest]
include:
exclude:
- laravel: 7.*
testbench: 5.*
- laravel: 8.*
testbench: 6.*
php: 8.1

name: P${{ matrix.php }} - L${{ matrix.laravel }} - ${{ matrix.dependency-version }} - ${{ matrix.os }}

Expand All @@ -32,19 +30,14 @@ jobs:
uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.php }}
extensions: dom, curl, libxml, mbstring, zip, pcntl, pdo, sqlite, pdo_sqlite, bcmath, soap, intl, gd, exif, iconv, imagick
extensions: dom, curl, libxml, mbstring, zip, pcntl, pdo, sqlite, pdo_sqlite, bcmath, soap, intl, gd, exif, iconv, imagick, fileinfo
coverage: none
tools: composer:v2

- name: Install PHP 7 dependencies
- name: Install dependencies
run: |
composer require "laravel/framework:${{ matrix.laravel }}" "orchestra/testbench:${{ matrix.testbench }}" --no-interaction --no-update
composer require "laravel/framework:${{ matrix.laravel }}" --no-interaction --no-update
composer update --${{ matrix.dependency-version }} --no-interaction --no-progress
if: "matrix.php < 8"

- name: Install PHP 8 dependencies
run: composer update --${{ matrix.dependency-version }} --ignore-platform-req=php --no-interaction --no-progress
if: "matrix.php >= 8"
- name: Execute tests
run: vendor/bin/phpunit
Expand Down

0 comments on commit e7e46f4

Please sign in to comment.