Skip to content

Commit 0e3cd4d

Browse files
authored
Added Laravel 11.x support (#16)
1 parent 426790b commit 0e3cd4d

File tree

2 files changed

+16
-10
lines changed

2 files changed

+16
-10
lines changed

.github/workflows/run-tests.yml

Lines changed: 11 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -11,12 +11,15 @@ jobs:
1111
runs-on: ubuntu-latest
1212

1313
strategy:
14-
fail-fast: true
14+
fail-fast: false
1515
matrix:
1616
php: [8.1, 8.2]
17-
laravel: [10]
17+
laravel: [10, '11']
1818
coverage-driver: [pcov]
1919
stability: [prefer-lowest, prefer-stable]
20+
exclude:
21+
- laravel: '11'
22+
php: 8.1
2023

2124
name: Ubuntu - P${{ matrix.php }} - L${{ matrix.laravel }} - ${{ matrix.stability }}
2225

@@ -51,12 +54,15 @@ jobs:
5154
runs-on: windows-latest
5255

5356
strategy:
54-
fail-fast: true
57+
fail-fast: false
5558
matrix:
5659
php: [8.1, 8.2]
57-
laravel: [10]
60+
laravel: [10, '11']
5861
coverage-driver: [pcov]
5962
stability: [prefer-lowest, prefer-stable]
63+
exclude:
64+
- laravel: '11'
65+
php: 8.1
6066

6167
name: Windows - P${{ matrix.php }} - L${{ matrix.laravel }} - ${{ matrix.stability }}
6268

@@ -78,7 +84,7 @@ jobs:
7884
7985
- name: Install dependencies
8086
run: |
81-
composer require "illuminate/contracts=^${{ matrix.laravel }}" --no-interaction --no-update
87+
composer require "illuminate/contracts=${{ matrix.laravel }}.*" --no-interaction --no-update
8288
composer update --${{ matrix.stability }} --prefer-dist --no-interaction
8389
8490
- name: Execute tests

composer.json

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -18,13 +18,13 @@
1818
"require": {
1919
"php": "^8.1|^8.2",
2020
"livewire/livewire": "^3.1",
21-
"illuminate/contracts": "^10.0",
22-
"illuminate/database": "^10.0",
23-
"illuminate/support": "^10.0"
21+
"illuminate/contracts": "^10.0|^11.0",
22+
"illuminate/database": "^10.0|^11.0",
23+
"illuminate/support": "^10.0|^11.0"
2424
},
2525
"require-dev": {
26-
"orchestra/testbench": "^7.5|^8.0",
27-
"phpunit/phpunit": "^9.5"
26+
"orchestra/testbench": "^8.0|^9.0",
27+
"phpunit/phpunit": "^9.5|^10.0"
2828
},
2929
"autoload": {
3030
"psr-4": {

0 commit comments

Comments
 (0)