Skip to content

Commit f19c2d6

Browse files
authored
Add support for Laravel 11 (#4)
* 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
1 parent a32bb95 commit f19c2d6

File tree

2 files changed

+28
-14
lines changed

2 files changed

+28
-14
lines changed

.github/workflows/run-tests.yml

Lines changed: 23 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,8 @@ jobs:
1717
# Disable testing on windows for now...
1818
# os: [ubuntu-latest, windows-latest]
1919
os: [ubuntu-latest]
20-
php: [7.4, 8.0, 8.1, 8.2]
21-
laravel: [7.*, 8.*, 9.*, 10.*]
20+
php: [7.4, 8.0, 8.1, 8.2, 8.3]
21+
laravel: [7.*, 8.*, 9.*, 10.*, 11.*]
2222
stability: [prefer-stable]
2323
include:
2424
- laravel: 7.*
@@ -29,21 +29,35 @@ jobs:
2929
testbench: 7.*
3030
- laravel: 10.*
3131
testbench: 8.*
32+
- laravel: 11.*
33+
testbench: 9.*
3234
exclude:
3335
- laravel: 7.*
3436
php: 8.1
3537
- laravel: 7.*
36-
php: 8.2
38+
php: 8.2
39+
- laravel: 7.*
40+
php: 8.3
3741
- laravel: 8.*
38-
php: 8.1
42+
php: 8.2
3943
- laravel: 8.*
40-
php: 8.2
44+
php: 8.3
45+
- laravel: 9.*
46+
php: 7.4
4147
- laravel: 9.*
42-
php: 7.4
48+
php: 8.2
49+
- laravel: 9.*
50+
php: 8.3
4351
- laravel: 10.*
4452
php: 7.4
4553
- laravel: 10.*
46-
php: 8.0
54+
php: 8.0
55+
- laravel: 11.*
56+
php: 7.4
57+
- laravel: 11.*
58+
php: 8.0
59+
- laravel: 11.*
60+
php: 8.1
4761

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

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

6175
- name: Setup problem matchers
6276
run: |
@@ -67,4 +81,4 @@ jobs:
6781
composer require "laravel/framework:${{ matrix.laravel }}" "orchestra/testbench:${{ matrix.testbench }}" --no-interaction --no-update
6882
composer update --${{ matrix.stability }} --prefer-dist --no-interaction
6983
- name: Execute tests
70-
run: vendor/bin/phpunit
84+
run: vendor/bin/phpunit

composer.json

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -17,13 +17,13 @@
1717
],
1818
"require": {
1919
"php": "^7.4|^8.0",
20-
"illuminate/contracts": "^7.0|^8.0|^9.0|^10.0",
21-
"illuminate/support": "^7.0|^8.0|^9.0|^10.0"
20+
"illuminate/contracts": "^7.0|^8.0|^9.0|^10.0|^11.0",
21+
"illuminate/support": "^7.0|^8.0|^9.0|^10.0|^11.0"
2222
},
2323
"require-dev": {
2424
"friendsofphp/php-cs-fixer": "^3.1",
25-
"orchestra/testbench": "5.*|6.*|7.*|8.*",
26-
"phpunit/phpunit": "^8.4|^9.0"
25+
"orchestra/testbench": "5.*|6.*|7.*|8.*|9.*",
26+
"phpunit/phpunit": "^8.4|^9.0|^10.0"
2727
},
2828
"autoload": {
2929
"psr-4": {
@@ -56,4 +56,4 @@
5656
},
5757
"minimum-stability": "dev",
5858
"prefer-stable": true
59-
}
59+
}

0 commit comments

Comments
 (0)