Skip to content

Commit e3d8f24

Browse files
authored
Merge pull request #162 from laravel-shift/l12-compatibility
Laravel 12.x Compatibility
2 parents e172d81 + 1a2bc2b commit e3d8f24

File tree

2 files changed

+18
-10
lines changed

2 files changed

+18
-10
lines changed

.github/workflows/run-tests.yml

Lines changed: 12 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,18 @@
11
name: run-tests
22

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

57
jobs:
68
test:
7-
89
runs-on: ${{ matrix.os }}
10+
911
strategy:
1012
fail-fast: true
1113
matrix:
1214
php: [8.3, 8.2, 8.1, 8.0]
13-
laravel: [11.*, 10.*, 9.*, 8.*]
15+
laravel: ['8.*', '9.*', '10.*', '11.*', '12.*']
1416
os: [ubuntu-latest]
1517
dependency-version: [prefer-stable]
1618
include:
@@ -22,13 +24,19 @@ jobs:
2224
testbench: 7.*
2325
- laravel: 8.*
2426
testbench: ^6.23
27+
- laravel: 12.*
28+
testbench: 10.*
2529
exclude:
2630
- laravel: 11.*
2731
php: 8.1
2832
- laravel: 11.*
2933
php: 8.0
3034
- laravel: 10.*
3135
php: 8.0
36+
- laravel: 12.*
37+
php: 8.1
38+
- laravel: 12.*
39+
php: 8.0
3240

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

@@ -45,7 +53,7 @@ jobs:
4553

4654
- name: Install dependencies
4755
run: |
48-
composer require "laravel/framework:${{ matrix.laravel }}" "nesbot/carbon:^2.63" "orchestra/testbench:${{ matrix.testbench }}" --no-interaction --no-update
56+
composer require "laravel/framework:${{ matrix.laravel }}" "orchestra/testbench:${{ matrix.testbench }}" --no-interaction --no-update
4957
composer update --${{ matrix.dependency-version }} --prefer-dist --no-interaction --no-suggest
5058
5159
- name: Execute tests

composer.json

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -21,16 +21,16 @@
2121
"php": "^8.0",
2222
"ext-json": "*",
2323
"guzzlehttp/guzzle": "^6.3|^7.3",
24-
"illuminate/bus": "^8.50|^9.0|^10.0|^11.0",
25-
"illuminate/queue": "^8.50|^9.0|^10.0|^11.0",
26-
"illuminate/support": "^8.50|^9.0|^10.0|^11.0",
24+
"illuminate/bus": "^8.50|^9.0|^10.0|^11.0|^12.0",
25+
"illuminate/queue": "^8.50|^9.0|^10.0|^11.0|^12.0",
26+
"illuminate/support": "^8.50|^9.0|^10.0|^11.0|^12.0",
2727
"spatie/laravel-package-tools": "^1.11"
2828
},
2929
"require-dev": {
3030
"mockery/mockery": "^1.4.3",
31-
"orchestra/testbench": "^6.19|^7.0|^8.0",
32-
"pestphp/pest": "^1.22|^2.0",
33-
"pestphp/pest-plugin-laravel": "^1.3|^2.0",
31+
"orchestra/testbench": "^6.19|^7.0|^8.0|^10.0",
32+
"pestphp/pest": "^1.22|^2.0|^3.0",
33+
"pestphp/pest-plugin-laravel": "^1.3|^2.0|^3.0",
3434
"spatie/test-time": "^1.2.2"
3535
},
3636
"autoload": {

0 commit comments

Comments
 (0)