File tree 5 files changed +63
-6
lines changed
5 files changed +63
-6
lines changed Original file line number Diff line number Diff line change @@ -105,7 +105,14 @@ jobs:
105
105
- php : 8.1
106
106
laravel : 10.*
107
107
phpunit : ~9.0
108
-
108
+ # Laravel 11.x
109
+ - php : 8.2
110
+ laravel : 11.*
111
+ phpunit : ~10.5
112
+ - php : 8.3
113
+ laravel : 11.*
114
+ phpunit : ~10.5
115
+
109
116
name : Laravel${{ matrix.laravel }}-PHP${{ matrix.php }}
110
117
111
118
steps :
@@ -130,8 +137,13 @@ jobs:
130
137
composer install --prefer-dist --no-progress --no-suggest
131
138
132
139
- name : Run test suite
140
+ if : matrix.laravel != '11.*'
133
141
run : ./vendor/bin/phpunit -v
134
142
143
+ - name : Run test suite laravel 11
144
+ if : matrix.laravel == '11.*'
145
+ run : ./vendor/bin/phpunit -c phpunit.10.xml
146
+
135
147
- name : Run Coveralls
136
148
env :
137
149
COVERALLS_REPO_TOKEN : ${{ secrets.GITHUB_TOKEN }}
Original file line number Diff line number Diff line change 21
21
"license" : " Apache-2.0" ,
22
22
"require" : {
23
23
"php" : " >=7.1.0" ,
24
- "illuminate/support" : " ~5.5|~6.0|~7.0|~8.0|~9.0|~10.0" ,
25
- "illuminate/database" : " ~5.5|~6.0|~7.0|~8.0|~9.0|~10.0" ,
26
- "illuminate/console" : " ~5.5|~6.0|~7.0|~8.0|~9.0|~10.0" ,
24
+ "illuminate/support" : " ~5.5|~6.0|~7.0|~8.0|~9.0|~10.0|~11.0 " ,
25
+ "illuminate/database" : " ~5.5|~6.0|~7.0|~8.0|~9.0|~10.0|~11.0 " ,
26
+ "illuminate/console" : " ~5.5|~6.0|~7.0|~8.0|~9.0|~10.0|~11.0 " ,
27
27
"casbin/casbin" : " ~3.1" ,
28
28
"casbin/psr3-bridge" : " ^1.1"
29
29
},
30
30
"require-dev" : {
31
- "phpunit/phpunit" : " ~7.0|~8.0|~9.0" ,
31
+ "phpunit/phpunit" : " ~7.0|~8.0|~9.0|~10.5 " ,
32
32
"php-coveralls/php-coveralls" : " ^2.4" ,
33
33
"mockery/mockery" : " ^1.0" ,
34
- "laravel/laravel" : " ~5.5|~6.0|~7.0|~8.0|~9.0|~10.0"
34
+ "laravel/laravel" : " ~5.5|~6.0|~7.0|~8.0|~9.0|~10.0|~11.0 "
35
35
},
36
36
"autoload" : {
37
37
"psr-4" : {
Original file line number Diff line number Diff line change
1
+ <?xml version =" 1.0" encoding =" UTF-8" ?>
2
+ <phpunit xmlns : xsi =" http://www.w3.org/2001/XMLSchema-instance"
3
+ backupGlobals =" false"
4
+ bootstrap =" vendor/autoload.php"
5
+ colors =" true"
6
+ processIsolation =" false"
7
+ stopOnFailure =" false"
8
+ xsi : noNamespaceSchemaLocation =" https://schema.phpunit.de/10.0/phpunit.xsd" >
9
+ <testsuites >
10
+ <testsuite name =" Application Test Suite" >
11
+ <directory >./tests/</directory >
12
+ </testsuite >
13
+ </testsuites >
14
+
15
+ <coverage includeUncoveredFiles =" true"
16
+ pathCoverage =" false"
17
+ ignoreDeprecatedCodeUnits =" true"
18
+ disableCodeCoverageIgnore =" true" >
19
+ <report >
20
+ <clover outputFile =" build/logs/clover.xml" />
21
+ <html outputDirectory =" build/html" lowUpperBound =" 50" highLowerBound =" 90" />
22
+ </report >
23
+ </coverage >
24
+
25
+ <source >
26
+ <include >
27
+ <directory >./src</directory >
28
+ </include >
29
+ </source >
30
+
31
+ <php >
32
+ <env name =" APP_ENV" value =" testing" />
33
+ <env name =" BCRYPT_ROUNDS" value =" 4" />
34
+ <env name =" CACHE_DRIVER" value =" array" />
35
+ <env name =" MAIL_DRIVER" value =" array" />
36
+ <env name =" QUEUE_CONNECTION" value =" sync" />
37
+ <env name =" SESSION_DRIVER" value =" array" />
38
+
39
+ <env name =" DB_DATABASE" value =" lauthz" />
40
+ <env name =" DB_USERNAME" value =" root" />
41
+ </php >
42
+ </phpunit >
Original file line number Diff line number Diff line change 16
16
<directory suffix =" .php" >./src</directory >
17
17
</whitelist >
18
18
</filter >
19
+
19
20
<logging >
20
21
<log type =" coverage-clover" target =" build/logs/clover.xml" />
21
22
<log type =" coverage-html" target =" build/html" />
22
23
</logging >
24
+
23
25
<php >
24
26
<env name =" APP_ENV" value =" testing" />
25
27
<env name =" BCRYPT_ROUNDS" value =" 4" />
Original file line number Diff line number Diff line change @@ -46,6 +46,7 @@ protected function initConfig()
46
46
$ this ->app ['config ' ]->set ('database.default ' , 'mysql ' );
47
47
$ this ->app ['config ' ]->set ('database.connections.mysql.charset ' , 'utf8 ' );
48
48
$ this ->app ['config ' ]->set ('database.connections.mysql.collation ' , 'utf8_unicode_ci ' );
49
+ $ this ->app ['config ' ]->set ('cache.default ' , 'array ' );
49
50
// $app['config']->set('lauthz.log.enabled', true);
50
51
}
51
52
You can’t perform that action at this time.
0 commit comments