File tree 3 files changed +26
-25
lines changed
3 files changed +26
-25
lines changed Original file line number Diff line number Diff line change @@ -2,9 +2,13 @@ name: phpstan
2
2
3
3
on :
4
4
push :
5
- branches : [master]
5
+ paths :
6
+ - ' **.php'
7
+ - ' phpstan.neon.dist'
6
8
pull_request :
7
- branches : [master]
9
+ paths :
10
+ - ' **.php'
11
+ - ' phpstan.neon.dist'
8
12
9
13
jobs :
10
14
phpstan :
@@ -17,22 +21,15 @@ jobs:
17
21
- name : Setup PHP
18
22
uses : shivammathur/setup-php@v2
19
23
with :
20
- php-version : 8.2
24
+ php-version : 8.3
21
25
22
- - name : Cache Composer packages
23
- id : composer-cache
24
- uses : actions/cache@v4
25
- with :
26
- path : vendor
27
- key : ${{ runner.os }}-php-${{ hashFiles('**/composer.lock') }}
28
- restore-keys : |
29
- ${{ runner.os }}-php-
26
+ - name : Install composer dependencies
27
+ uses : ramsey/composer-install@v3
30
28
31
- - name : Install dependencies
32
- if : steps.composer-cache.outputs.cache-hit != 'true'
29
+ - name : Install larastan
33
30
run : |
34
- composer install
35
- composer dump
31
+ composer require "larastan/larastan" --no-interaction --no-update
32
+ composer update --prefer-dist --no-interaction
36
33
37
34
- name : Run analyse phpstan
38
35
run : vendor/bin/phpstan analyse --error-format github
Original file line number Diff line number Diff line change @@ -14,16 +14,20 @@ jobs:
14
14
fail-fast : false
15
15
matrix :
16
16
php : [8.4, 8.3, 8.2, 8.1]
17
- laravel : ['10.*', '11.*']
17
+ laravel : ['10.*', '11.*', '12.*' ]
18
18
dependency-version : [prefer-stable]
19
19
include :
20
20
- laravel : 10.*
21
21
testbench : 8.*
22
22
- laravel : 11.*
23
23
testbench : 9.*
24
+ - laravel : 12.*
25
+ testbench : 10.*
24
26
exclude :
25
27
- laravel : 11.*
26
28
php : 8.1
29
+ - laravel : 12.*
30
+ php : 8.1
27
31
28
32
name : P${{ matrix.php }} - L${{ matrix.laravel }} - ${{ matrix.dependency-version }}
29
33
Original file line number Diff line number Diff line change 21
21
"license" : " MIT" ,
22
22
"require" : {
23
23
"php" : " ^8.1" ,
24
- "illuminate/auth" : " ^10.0|^11.0" ,
25
- "illuminate/container" : " ^10.0|^11.0" ,
26
- "illuminate/contracts" : " ^10.0|^11.0" ,
27
- "illuminate/database" : " ^10.0|^11.0" ,
28
- "laravel/serializable-closure" : " ^1.0|^2.0"
24
+ "illuminate/auth" : " ^10.0|^11.0|^12.0" ,
25
+ "illuminate/container" : " ^10.0|^11.0|^12.0" ,
26
+ "illuminate/contracts" : " ^10.0|^11.0|^12.0" ,
27
+ "illuminate/database" : " ^10.0|^11.0|^12.0" ,
28
+ "laravel/serializable-closure" : " ^1.0|^2.0" ,
29
+ "laravel/framework" : " 12.*" ,
30
+ "orchestra/testbench" : " 10.*"
29
31
},
30
32
"autoload" : {
31
33
"psr-4" : {
48
50
}
49
51
},
50
52
"require-dev" : {
51
- "orchestra/testbench" : " ^7.0|^8.0|^9.0" ,
52
- "phpunit/phpunit" : " ^9.0|^10.5" ,
53
- "friendsofphp/php-cs-fixer" : " ^3.9" ,
54
- "larastan/larastan" : " ^2.0"
53
+ "phpunit/phpunit" : " ^9.0|^10.5|^11.5" ,
54
+ "friendsofphp/php-cs-fixer" : " ^3.9"
55
55
},
56
56
"minimum-stability" : " dev" ,
57
57
"prefer-stable" : true
You can’t perform that action at this time.
0 commit comments