Skip to content

Commit

Permalink
Merge pull request #32 from OmarFaruk-0x01/chor/add-laravel-11
Browse files Browse the repository at this point in the history
[1.x] Add laravel v11 support
  • Loading branch information
milwad-dev authored Mar 28, 2024
2 parents 76a8f98 + 42ff72d commit 336fc12
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 4 deletions.
18 changes: 16 additions & 2 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,21 +8,35 @@ jobs:
strategy:
fail-fast: false
matrix:
php: [8.0, 8.1, 8.2]
laravel: [9.*, 10.*]
php: [8.0, 8.1, 8.2, 8.3]
laravel: [9.*, 10.*, 11.*]
dependency-version: [prefer-lowest, prefer-stable]
include:
- laravel: 11.*
testbench: 9.*
pest-plugin-laravel: 2.3.0

- laravel: 10.*
testbench: 8.*
pest-plugin-laravel: 2.0.0

- laravel: 9.*
testbench: 7.*
pest-plugin-laravel: 1.4.0

exclude:
- laravel: 11.*
php: 8.1

- laravel: 11.*
php: 8.0

- laravel: 10.*
php: 8.0

- laravel: 9.*
php: 8.3

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

steps:
Expand Down
4 changes: 2 additions & 2 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -46,11 +46,11 @@
},
"require": {
"php": "^8.0",
"laravel/framework": "^9.0|^10.0"
"laravel/framework": "^9.0|^10.0|^11.0"
},
"require-dev": {
"pestphp/pest-plugin-laravel": "^1.4.0|^2.0.0",
"orchestra/testbench": "^7.0|^8.0"
"orchestra/testbench": "^7.0|^8.0|^9.0"
},
"config": {
"sort-packages": true,
Expand Down
3 changes: 3 additions & 0 deletions tests/TestCase.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
use Binafy\LaravelUserMonitoring\Middlewares\VisitMonitoringMiddleware;
use Binafy\LaravelUserMonitoring\Providers\LaravelUserMonitoringServiceProvider;
use Illuminate\Encryption\Encrypter;
use Illuminate\Support\Facades\Artisan;
use Illuminate\Support\Facades\Route;
use Tests\SetUp\Models\User;

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

$this->loadMigrationsFrom(__DIR__.'/SetUp/Migrations');

Artisan::call('migrate');
}
}

0 comments on commit 336fc12

Please sign in to comment.