Skip to content

Commit 6078ea9

Browse files
authored
Merge pull request #78 from SamuelNitsche/laravel-9
Add support for Laravel 9
2 parents 8377be8 + 3e6ba66 commit 6078ea9

File tree

3 files changed

+23
-11
lines changed

3 files changed

+23
-11
lines changed

.github/workflows/run-tests.yml

Lines changed: 17 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -7,19 +7,31 @@ jobs:
77
runs-on: ubuntu-latest
88

99
strategy:
10-
fail-fast: true
10+
fail-fast: false
1111
matrix:
12-
php: [7.3, 7.4, 8.0]
13-
laravel: [6.*, 7.*, 8.*]
12+
php: [7.3, 7.4, 8.0, 8.1]
13+
laravel: [6.*, 7.*, 8.*, 9.*]
1414
dependency-version: [prefer-lowest, prefer-stable]
1515
include:
16+
- laravel: 9.*
17+
testbench: 7.*
1618
- laravel: 8.*
1719
testbench: 6.*
1820
- laravel: 7.*
1921
testbench: 5.*
2022
- laravel: 6.*
2123
testbench: 4.*
2224
exclude:
25+
# excludes php7.3, php7.4 for laravel 9
26+
- php: 7.3
27+
laravel: 9.*
28+
- php: 7.4
29+
laravel: 9.*
30+
# excludes laravel 6+7 on php8.1
31+
- php: 8.1
32+
laravel: 6.*
33+
- php: 8.1
34+
laravel: 7.*
2335
# excludes laravel 6+7 on php8
2436
- php: 8.0
2537
laravel: 6.*
@@ -30,15 +42,15 @@ jobs:
3042

3143
steps:
3244
- name: Checkout code
33-
uses: actions/checkout@v1
45+
uses: actions/checkout@v2
3446

3547
- name: Install SQLite 3
3648
run: |
3749
sudo apt-get update
3850
sudo apt-get install sqlite3
3951
sudo apt-get install redis
4052
- name: Cache dependencies
41-
uses: actions/cache@v1
53+
uses: actions/cache@v2
4254
with:
4355
path: ~/.composer/cache/files
4456
key: dependencies-laravel-${{ matrix.laravel }}-php-${{ matrix.php }}-composer-${{ hashFiles('composer.json') }}

composer.json

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -18,17 +18,17 @@
1818
}
1919
],
2020
"require": {
21-
"php": "^7.3|^8.0",
22-
"illuminate/support": "~5.5.0 || ~5.6.0 || ~5.7.0 || ~5.8.0 || ^6.0 || ^7.0 || ^8.0",
21+
"php": "^7.3 || ^8.0",
22+
"illuminate/support": "~5.5.0 || ~5.6.0 || ~5.7.0 || ~5.8.0 || ^6.0 || ^7.0 || ^8.0 || ^9.0",
2323
"jaybizzle/crawler-detect": "^1.2",
2424
"spatie/laravel-referer": "^1.6",
2525
"torann/geoip": "^1.0|^3.0"
2626
},
2727
"require-dev": {
2828
"doctrine/dbal": "^2.6|^3.0",
29-
"illuminate/support": "~5.5.0 || ~5.6.0 || ~5.7.0 || ~5.8.0 || ^6.0 || ^7.0 || ^8.0",
30-
"mockery/mockery": "^1.4",
31-
"orchestra/testbench": "^3.5 || ^3.6 || ^3.7 || ^3.8 || ^4.0 || ^5.0 || ^6.0",
29+
"illuminate/support": "~5.5.0 || ~5.6.0 || ~5.7.0 || ~5.8.0 || ^6.0 || ^7.0 || ^8.0 || ^9.0",
30+
"mockery/mockery": "^1.4 || ^2.0",
31+
"orchestra/testbench": "^3.5 || ^3.6 || ^3.7 || ^3.8 || ^4.0 || ^5.0 || ^6.0 || ^7.0",
3232
"phpunit/phpunit": "^9.3",
3333
"predis/predis": "^1.1"
3434
},

tests/TestCase.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ public function setUp(): void
3232
parent::setUp();
3333

3434
$this->app['config']->set('geoip', array_merge(require __DIR__ . '/../vendor/torann/geoip/config/geoip.php'));
35-
$this->app['router']->get('/')->middleware(CaptureReferer::class, function () {
35+
$this->app['router']->middleware(CaptureReferer::class)->get('/', function () {
3636
return response(null, 200);
3737
});
3838
$this->session = $this->app['session.store'];

0 commit comments

Comments
 (0)