File tree 2 files changed +59
-7
lines changed
2 files changed +59
-7
lines changed Original file line number Diff line number Diff line change @@ -4,53 +4,105 @@ on: push
4
4
5
5
jobs :
6
6
phpcs :
7
+
7
8
runs-on : ubuntu-latest
9
+
10
+
11
+
8
12
steps :
9
13
- uses : actions/checkout@v2
14
+
15
+
16
+
10
17
- uses : shivammathur/setup-php@v2
11
18
with :
12
19
php-version : ' 8.1'
20
+
21
+
22
+
13
23
- run : composer install --no-interaction --prefer-dist
24
+
25
+
26
+
14
27
- run : vendor/bin/phpcs
15
28
16
29
phpstan :
30
+
17
31
runs-on : ubuntu-latest
32
+
33
+
34
+
18
35
steps :
19
36
- uses : actions/checkout@v2
37
+
38
+
39
+
20
40
- uses : shivammathur/setup-php@v2
21
41
with :
22
42
php-version : ' 8.1'
43
+
44
+
45
+
23
46
- run : composer install --no-interaction --prefer-dist
47
+
48
+
49
+
24
50
- run : vendor/bin/phpstan analyse
25
51
26
52
phpunit :
27
53
strategy :
28
54
matrix :
29
- php : [ 8.2, 8.1 ]
30
- laravel : [ 10.*, 9.* ]
31
- os : [ ubuntu-latest ]
55
+ php : [8.2, 8.1]
56
+ laravel : ['9.*', ' 10.*', '11.*' ]
57
+ os : [ubuntu-latest]
32
58
include :
33
59
- laravel : 10.*
34
60
testbench : ^8.0
35
61
- laravel : 9.*
36
62
testbench : ^7.0
63
+ - laravel : 11.*
64
+ testbench : ^9.0
65
+ exclude :
66
+ - laravel : 11.*
67
+ php : 8.1
68
+
37
69
runs-on : ${{ matrix.os }}
70
+
38
71
name : phpunit (P${{ matrix.php }} - L${{ matrix.laravel }})
72
+
39
73
env :
40
74
DB_HOST : 127.0.0.1
75
+
76
+
77
+
41
78
steps :
42
79
- uses : actions/checkout@v2
80
+
81
+
82
+
43
83
- uses : shivammathur/setup-php@v2
44
84
with :
45
85
php-version : ${{ matrix.php }}
86
+
87
+
88
+
46
89
- uses : shogo82148/actions-setup-mysql@v1
47
90
with :
48
91
mysql-version : ' 8.0'
49
92
user : loadfile
50
93
password : loadfile-testing
51
94
my-cnf : local_infile=1
95
+
96
+
97
+
52
98
- run : mysql -uroot -h127.0.0.1 -e 'create database loadfile'
99
+
100
+
101
+
53
102
- run : |
54
103
composer require "laravel/framework:${{ matrix.laravel }}" "orchestra/testbench:${{ matrix.testbench }}" --no-interaction --no-update
55
104
composer update --no-interaction --prefer-dist
105
+
106
+
107
+
56
108
- run : vendor/bin/phpunit
Original file line number Diff line number Diff line change 22
22
},
23
23
"require" : {
24
24
"php" : " ^8.1" ,
25
- "illuminate/database" : " ^9.0|^10.0"
25
+ "illuminate/database" : " ^9.0|^10.0|^11.0 "
26
26
},
27
27
"require-dev" : {
28
- "phpunit/phpunit" : " ^9" ,
29
- "orchestra/testbench" : " ^7.0|^8.0" ,
28
+ "phpunit/phpunit" : " ^9|^10.5 " ,
29
+ "orchestra/testbench" : " ^7.0|^8.0|^9.0 " ,
30
30
"squizlabs/php_codesniffer" : " ^3.6" ,
31
- "vimeo/psalm" : " ^4.7" ,
31
+ "vimeo/psalm" : " ^4.7|^5.22 " ,
32
32
"nunomaduro/larastan" : " ^2.0"
33
33
},
34
34
"scripts" : {
You can’t perform that action at this time.
0 commit comments