Skip to content

Commit

Permalink
Add support for Laravel 11 (#4)
Browse files Browse the repository at this point in the history
* Add support for Laravel 11

* Update testing

* Redefine matrix based on:
- https://laravel.com/docs/8.x/releases
- https://laravel.com/docs/11.x/releases

* Add xdebug to coverage
  • Loading branch information
ezitisitis authored Oct 1, 2024
1 parent a32bb95 commit f19c2d6
Show file tree
Hide file tree
Showing 2 changed files with 28 additions and 14 deletions.
32 changes: 23 additions & 9 deletions .github/workflows/run-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,8 @@ jobs:
# Disable testing on windows for now...
# os: [ubuntu-latest, windows-latest]
os: [ubuntu-latest]
php: [7.4, 8.0, 8.1, 8.2]
laravel: [7.*, 8.*, 9.*, 10.*]
php: [7.4, 8.0, 8.1, 8.2, 8.3]
laravel: [7.*, 8.*, 9.*, 10.*, 11.*]
stability: [prefer-stable]
include:
- laravel: 7.*
Expand All @@ -29,21 +29,35 @@ jobs:
testbench: 7.*
- laravel: 10.*
testbench: 8.*
- laravel: 11.*
testbench: 9.*
exclude:
- laravel: 7.*
php: 8.1
- laravel: 7.*
php: 8.2
php: 8.2
- laravel: 7.*
php: 8.3
- laravel: 8.*
php: 8.1
php: 8.2
- laravel: 8.*
php: 8.2
php: 8.3
- laravel: 9.*
php: 7.4
- laravel: 9.*
php: 7.4
php: 8.2
- laravel: 9.*
php: 8.3
- laravel: 10.*
php: 7.4
- laravel: 10.*
php: 8.0
php: 8.0
- laravel: 11.*
php: 7.4
- laravel: 11.*
php: 8.0
- laravel: 11.*
php: 8.1

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

Expand All @@ -56,7 +70,7 @@ jobs:
with:
php-version: ${{ matrix.php }}
extensions: dom, curl, libxml, mbstring, zip, pcntl, pdo, sqlite, pdo_sqlite, bcmath, soap, intl, gd, exif, iconv, imagick, fileinfo
coverage: none
coverage: xdebug

- name: Setup problem matchers
run: |
Expand All @@ -67,4 +81,4 @@ jobs:
composer require "laravel/framework:${{ matrix.laravel }}" "orchestra/testbench:${{ matrix.testbench }}" --no-interaction --no-update
composer update --${{ matrix.stability }} --prefer-dist --no-interaction
- name: Execute tests
run: vendor/bin/phpunit
run: vendor/bin/phpunit
10 changes: 5 additions & 5 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,13 +17,13 @@
],
"require": {
"php": "^7.4|^8.0",
"illuminate/contracts": "^7.0|^8.0|^9.0|^10.0",
"illuminate/support": "^7.0|^8.0|^9.0|^10.0"
"illuminate/contracts": "^7.0|^8.0|^9.0|^10.0|^11.0",
"illuminate/support": "^7.0|^8.0|^9.0|^10.0|^11.0"
},
"require-dev": {
"friendsofphp/php-cs-fixer": "^3.1",
"orchestra/testbench": "5.*|6.*|7.*|8.*",
"phpunit/phpunit": "^8.4|^9.0"
"orchestra/testbench": "5.*|6.*|7.*|8.*|9.*",
"phpunit/phpunit": "^8.4|^9.0|^10.0"
},
"autoload": {
"psr-4": {
Expand Down Expand Up @@ -56,4 +56,4 @@
},
"minimum-stability": "dev",
"prefer-stable": true
}
}

0 comments on commit f19c2d6

Please sign in to comment.