Skip to content

Commit bda53ab

Browse files
authored
Merge pull request #158 from laravel-shift/l11-compatibility
Laravel 11.x Compatibility
2 parents b40cfcb + 1dbb125 commit bda53ab

File tree

2 files changed

+15
-6
lines changed

2 files changed

+15
-6
lines changed

.github/workflows/run-tests.yml

Lines changed: 12 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,26 +1,34 @@
11
name: run-tests
22

3-
on: [push, pull_request]
3+
on:
4+
- push
5+
- pull_request
46

57
jobs:
68
test:
79
runs-on: ${{ matrix.os }}
10+
811
strategy:
912
fail-fast: false
1013
matrix:
1114
os: [ubuntu-latest]
1215
php: [8.2, 8.1, 8.0]
13-
laravel: [10.*, 9.*]
16+
laravel: ['9.*', '10.*', '11.*']
1417
dependency-version: [prefer-stable]
1518
include:
1619
- laravel: 10.*
1720
testbench: 8.*
1821
- laravel: 9.*
1922
testbench: 7.*
20-
23+
- laravel: 11.*
24+
testbench: 9.*
2125
exclude:
2226
- laravel: 10.*
2327
php: 8.0
28+
- laravel: 11.*
29+
php: 8.1
30+
- laravel: 11.*
31+
php: 8.0
2432

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

@@ -45,5 +53,6 @@ jobs:
4553
run: |
4654
composer require "laravel/framework:${{ matrix.laravel }}" "orchestra/testbench:${{ matrix.testbench }}" --no-interaction --no-update
4755
composer update --${{ matrix.dependency-version }} --prefer-dist --no-interaction --no-suggest
56+
4857
- name: Execute tests
4958
run: vendor/bin/phpunit

composer.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -25,12 +25,12 @@
2525
"prefer-stable": true,
2626
"require": {
2727
"php": "^8.0",
28-
"laravel/framework": "^9.0|^10.0"
28+
"laravel/framework": "^9.0|^10.0|^11.0"
2929
},
3030
"require-dev": {
3131
"mockery/mockery": "^1.5.1",
32-
"illuminate/database": "^9.0|^10.0",
33-
"orchestra/testbench": "^7.0|^8.0",
32+
"illuminate/database": "^9.0|^10.0|^11.0",
33+
"orchestra/testbench": "^7.0|^8.0|^9.0",
3434
"doctrine/dbal": "^2.10|^3.5"
3535
},
3636
"config": {

0 commit comments

Comments
 (0)