Skip to content

Commit 336fc12

Browse files
authored
Merge pull request #32 from OmarFaruk-0x01/chor/add-laravel-11
[1.x] Add laravel v11 support
2 parents 76a8f98 + 42ff72d commit 336fc12

File tree

3 files changed

+21
-4
lines changed

3 files changed

+21
-4
lines changed

.github/workflows/tests.yml

+16-2
Original file line numberDiff line numberDiff line change
@@ -8,21 +8,35 @@ jobs:
88
strategy:
99
fail-fast: false
1010
matrix:
11-
php: [8.0, 8.1, 8.2]
12-
laravel: [9.*, 10.*]
11+
php: [8.0, 8.1, 8.2, 8.3]
12+
laravel: [9.*, 10.*, 11.*]
1313
dependency-version: [prefer-lowest, prefer-stable]
1414
include:
15+
- laravel: 11.*
16+
testbench: 9.*
17+
pest-plugin-laravel: 2.3.0
18+
1519
- laravel: 10.*
1620
testbench: 8.*
1721
pest-plugin-laravel: 2.0.0
22+
1823
- laravel: 9.*
1924
testbench: 7.*
2025
pest-plugin-laravel: 1.4.0
2126

2227
exclude:
28+
- laravel: 11.*
29+
php: 8.1
30+
31+
- laravel: 11.*
32+
php: 8.0
33+
2334
- laravel: 10.*
2435
php: 8.0
2536

37+
- laravel: 9.*
38+
php: 8.3
39+
2640
name: P${{ matrix.php }} - L${{ matrix.laravel }} - ${{ matrix.dependency-version }}
2741

2842
steps:

composer.json

+2-2
Original file line numberDiff line numberDiff line change
@@ -46,11 +46,11 @@
4646
},
4747
"require": {
4848
"php": "^8.0",
49-
"laravel/framework": "^9.0|^10.0"
49+
"laravel/framework": "^9.0|^10.0|^11.0"
5050
},
5151
"require-dev": {
5252
"pestphp/pest-plugin-laravel": "^1.4.0|^2.0.0",
53-
"orchestra/testbench": "^7.0|^8.0"
53+
"orchestra/testbench": "^7.0|^8.0|^9.0"
5454
},
5555
"config": {
5656
"sort-packages": true,

tests/TestCase.php

+3
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
use Binafy\LaravelUserMonitoring\Middlewares\VisitMonitoringMiddleware;
66
use Binafy\LaravelUserMonitoring\Providers\LaravelUserMonitoringServiceProvider;
77
use Illuminate\Encryption\Encrypter;
8+
use Illuminate\Support\Facades\Artisan;
89
use Illuminate\Support\Facades\Route;
910
use Tests\SetUp\Models\User;
1011

@@ -59,5 +60,7 @@ protected function setUp(): void
5960
Route::middleware([VisitMonitoringMiddleware::class, 'web'])->group(__DIR__ . '/SetUp/Routes/web_tests.php');
6061

6162
$this->loadMigrationsFrom(__DIR__.'/SetUp/Migrations');
63+
64+
Artisan::call('migrate');
6265
}
6366
}

0 commit comments

Comments
 (0)