File tree Expand file tree Collapse file tree 1 file changed +12
-15
lines changed Expand file tree Collapse file tree 1 file changed +12
-15
lines changed Original file line number Diff line number Diff line change @@ -2,9 +2,13 @@ name: phpstan
22
33on :
44 push :
5- branches : [master]
5+ paths :
6+ - ' **.php'
7+ - ' phpstan.neon.dist'
68 pull_request :
7- branches : [master]
9+ paths :
10+ - ' **.php'
11+ - ' phpstan.neon.dist'
812
913jobs :
1014 phpstan :
@@ -17,22 +21,15 @@ jobs:
1721 - name : Setup PHP
1822 uses : shivammathur/setup-php@v2
1923 with :
20- php-version : 8.2
24+ php-version : 8.3
2125
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
3028
31- - name : Install dependencies
32- if : steps.composer-cache.outputs.cache-hit != 'true'
29+ - name : Install larastan
3330 run : |
34- composer install
35- composer dump
31+ composer require "larastan/larastan" --no-interaction --no-update
32+ composer update --prefer-dist --no-interaction
3633
3734 - name : Run analyse phpstan
3835 run : vendor/bin/phpstan analyse --error-format github
You can’t perform that action at this time.
0 commit comments