File tree 1 file changed +12
-15
lines changed
1 file changed +12
-15
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-8.2-${{ hashFiles('**/composer.lock') }}
28
- restore-keys : |
29
- ${{ runner.os }}-php-8.2-
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
You can’t perform that action at this time.
0 commit comments