File tree Expand file tree Collapse file tree 3 files changed +23
-11
lines changed Expand file tree Collapse file tree 3 files changed +23
-11
lines changed Original file line number Diff line number Diff line change 7
7
runs-on : ubuntu-latest
8
8
9
9
strategy :
10
- fail-fast : true
10
+ fail-fast : false
11
11
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.* ]
14
14
dependency-version : [prefer-lowest, prefer-stable]
15
15
include :
16
+ - laravel : 9.*
17
+ testbench : 7.*
16
18
- laravel : 8.*
17
19
testbench : 6.*
18
20
- laravel : 7.*
19
21
testbench : 5.*
20
22
- laravel : 6.*
21
23
testbench : 4.*
22
24
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.*
23
35
# excludes laravel 6+7 on php8
24
36
- php : 8.0
25
37
laravel : 6.*
@@ -30,15 +42,15 @@ jobs:
30
42
31
43
steps :
32
44
- name : Checkout code
33
- uses : actions/checkout@v1
45
+ uses : actions/checkout@v2
34
46
35
47
- name : Install SQLite 3
36
48
run : |
37
49
sudo apt-get update
38
50
sudo apt-get install sqlite3
39
51
sudo apt-get install redis
40
52
- name : Cache dependencies
41
- uses : actions/cache@v1
53
+ uses : actions/cache@v2
42
54
with :
43
55
path : ~/.composer/cache/files
44
56
key : dependencies-laravel-${{ matrix.laravel }}-php-${{ matrix.php }}-composer-${{ hashFiles('composer.json') }}
Original file line number Diff line number Diff line change 18
18
}
19
19
],
20
20
"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 " ,
23
23
"jaybizzle/crawler-detect" : " ^1.2" ,
24
24
"spatie/laravel-referer" : " ^1.6" ,
25
25
"torann/geoip" : " ^1.0|^3.0"
26
26
},
27
27
"require-dev" : {
28
28
"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 " ,
32
32
"phpunit/phpunit" : " ^9.3" ,
33
33
"predis/predis" : " ^1.1"
34
34
},
Original file line number Diff line number Diff line change @@ -32,7 +32,7 @@ public function setUp(): void
32
32
parent ::setUp ();
33
33
34
34
$ 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 () {
36
36
return response (null , 200 );
37
37
});
38
38
$ this ->session = $ this ->app ['session.store ' ];
You can’t perform that action at this time.
0 commit comments