File tree 5 files changed +20
-18
lines changed
5 files changed +20
-18
lines changed Original file line number Diff line number Diff line change 1
1
name : Fix PHP code style issues
2
2
3
- on : [push]
3
+ on :
4
+ push :
5
+ paths :
6
+ - ' **.php'
4
7
5
8
jobs :
6
9
php-code-styling :
13
16
ref : ${{ github.head_ref }}
14
17
15
18
- name : Fix PHP code style issues
16
- uses : aglipanci/laravel-pint-action@1.0 .0
19
+ uses : aglipanci/laravel-pint-action@2.1 .0
17
20
18
21
- name : Commit changes
19
22
uses : stefanzweifel/git-auto-commit-action@v4
Original file line number Diff line number Diff line change @@ -13,12 +13,12 @@ jobs:
13
13
fail-fast : true
14
14
matrix :
15
15
os : [ubuntu-latest, windows-latest]
16
- php : [8.1]
17
- laravel : [9 .*]
16
+ php : [8.1, 8.2 ]
17
+ laravel : [10 .*]
18
18
stability : [prefer-lowest, prefer-stable]
19
19
include :
20
- - laravel : 9 .*
21
- testbench : 7 .*
20
+ - laravel : 10 .*
21
+ testbench : 8 .*
22
22
23
23
name : P${{ matrix.php }} - L${{ matrix.laravel }} - ${{ matrix.stability }} - ${{ matrix.os }}
24
24
Original file line number Diff line number Diff line change 18
18
"require" : {
19
19
"php" : " ^8.1" ,
20
20
"doctrine/dbal" : " ^3.4" ,
21
- "illuminate/contracts" : " ^9.0" ,
22
- "spatie/laravel-package-tools" : " ^1.13 .0"
21
+ "illuminate/contracts" : " ^9.0 | ^10.0 " ,
22
+ "spatie/laravel-package-tools" : " ^1.14 .0"
23
23
},
24
24
"require-dev" : {
25
25
"laravel/pint" : " ^1.0" ,
26
- "nunomaduro/collision" : " ^6 .0" ,
26
+ "nunomaduro/collision" : " ^7 .0" ,
27
27
"nunomaduro/larastan" : " ^2.0.1" ,
28
- "orchestra/testbench" : " ^7 .0" ,
29
- "pestphp/pest" : " ^1.21 " ,
30
- "pestphp/pest-plugin-laravel" : " ^1.1 " ,
28
+ "orchestra/testbench" : " ^8 .0" ,
29
+ "pestphp/pest" : " ^2.0 " ,
30
+ "pestphp/pest-plugin-laravel" : " ^2.0 " ,
31
31
"phpstan/extension-installer" : " ^1.1" ,
32
32
"phpstan/phpstan-deprecation-rules" : " ^1.0" ,
33
33
"phpstan/phpstan-phpunit" : " ^1.0" ,
34
- "phpunit/phpunit" : " ^9.5"
34
+ "phpunit/phpunit" : " ^9.5 | ^10.0 "
35
35
},
36
36
"autoload" : {
37
37
"psr-4" : {
Original file line number Diff line number Diff line change 5
5
use Illuminate \Support \Facades \Route ;
6
6
use Illuminate \Support \Facades \Storage ;
7
7
8
- beforeEach (function () {
9
- LaravelDbDoc::routes ();
10
- });
11
-
12
8
it ('has db:schema command ' , function () {
13
9
$ this ->assertTrue (in_array ('db:schema ' , array_keys (Artisan::all ())));
14
10
});
35
31
$ this ->assertTrue (
36
32
Route::has ('doc.db-schema ' )
37
33
);
38
- })-> markTestSkipped ( ' Somehow the test did not find the router. ' ) ;
34
+ });
Original file line number Diff line number Diff line change 2
2
3
3
namespace Bekwoh \LaravelDbDoc \Tests ;
4
4
5
+ use Bekwoh \LaravelDbDoc \Facades \LaravelDbDoc ;
5
6
use Bekwoh \LaravelDbDoc \LaravelDbDocServiceProvider ;
6
7
use Illuminate \Database \Eloquent \Factories \Factory ;
7
8
use Orchestra \Testbench \TestCase as Orchestra ;
@@ -28,6 +29,8 @@ public function getEnvironmentSetUp($app)
28
29
{
29
30
config ()->set ('database.default ' , 'testing ' );
30
31
32
+ LaravelDbDoc::routes ();
33
+
31
34
/*
32
35
$migration = include __DIR__.'/../database/migrations/create_laravel-db-doc_table.php.stub';
33
36
$migration->up();
You can’t perform that action at this time.
0 commit comments