Skip to content

Commit c7148e2

Browse files
Laravel 12.x Compatibility (#227)
* Bump dependencies for Laravel 12 * Update GitHub Actions for Laravel 12 * Update run-tests.yml * Update composer.json * Update run-tests.yml --------- Co-authored-by: Freek Van der Herten <freek@spatie.be>
1 parent 3c07166 commit c7148e2

File tree

2 files changed

+16
-22
lines changed

2 files changed

+16
-22
lines changed

.github/workflows/run-tests.yml

Lines changed: 11 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -2,33 +2,28 @@ name: run-tests
22

33
on:
44
push:
5-
branches: [main]
5+
branches:
6+
- main
67
pull_request:
7-
branches: [main]
8+
branches:
9+
- main
810

911
jobs:
1012
test:
1113
runs-on: ${{ matrix.os }}
14+
1215
strategy:
1316
fail-fast: false
1417
matrix:
15-
php: [8.3, 8.2, 8.1]
16-
laravel: [11.*, 10.*, 9.*,]
18+
php: [8.4, 8.3]
19+
laravel: ['11.*', '12.*']
1720
dependency-version: [prefer-lowest, prefer-stable]
18-
os: [ubuntu-latest]
19-
exclude:
20-
- laravel: 11.*
21-
php: 8.1
21+
os: [ubuntu-latest]
2222
include:
23+
- laravel: 12.*
24+
testbench: ^10.0
2325
- laravel: 11.*
2426
testbench: ^9.0
25-
carbon: ^3.0
26-
- laravel: 10.*
27-
testbench: ^8.0
28-
carbon: ^2.63
29-
- laravel: 9.*
30-
testbench: ^7.0
31-
carbon: ^2.63
3227

3328
name: P${{ matrix.php }} - L${{ matrix.laravel }} - ${{ matrix.dependency-version }} - ${{ matrix.os }}
3429

@@ -50,7 +45,7 @@ jobs:
5045
5146
- name: Install dependencies
5247
run: |
53-
composer require "laravel/framework:${{ matrix.laravel }}" "orchestra/testbench:${{ matrix.testbench }}" "nesbot/carbon:${{ matrix.carbon }}" --no-interaction --no-update
48+
composer require "laravel/framework:${{ matrix.laravel }}" "orchestra/testbench:${{ matrix.testbench }}" --no-interaction --no-update
5449
composer update --${{ matrix.dependency-version }} --prefer-dist --no-interaction
5550
5651
- name: List Installed Dependencies

composer.json

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -17,18 +17,17 @@
1717
"homepage": "https://github.com/spatie/laravel-webhook-client",
1818
"require": {
1919
"php": "^8.1 || ^8.2",
20-
"illuminate/bus": "^9.0 || ^10.0 || ^11.0",
21-
"illuminate/database": "^9.0 || ^10.0 || ^11.0",
22-
"illuminate/support": "^9.0 || ^10.0 || ^11.0",
20+
"illuminate/bus": "^9.0 || ^10.0 || ^11.0 || ^12.0",
21+
"illuminate/database": "^9.0 || ^10.0 || ^11.0 || ^12.0",
22+
"illuminate/support": "^9.0 || ^10.0 || ^11.0 || ^12.0",
2323
"spatie/laravel-package-tools": "^1.11"
2424
},
2525
"require-dev": {
26-
"larastan/larastan": "^1.0.4 || ^2.2",
27-
"orchestra/testbench": "^7.0 || ^8.0 || ^9.0",
26+
"orchestra/testbench": "^7.0 || ^8.0 || ^9.0 || ^10.0",
2827
"phpstan/extension-installer": "^1.0",
2928
"phpstan/phpstan-deprecation-rules": "^1.0",
3029
"phpstan/phpstan-phpunit": "^1.0",
31-
"phpunit/phpunit": "^9.3 || ^10.5",
30+
"phpunit/phpunit": "^9.3 || ^10.5 || ^11.5.3 || ^12.0",
3231
"spatie/laravel-ray": "^1.24"
3332
},
3433
"minimum-stability": "dev",

0 commit comments

Comments
 (0)