File tree 1 file changed +8
-16
lines changed
1 file changed +8
-16
lines changed Original file line number Diff line number Diff line change @@ -2,9 +2,13 @@ name: Analyse
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 :
19
23
with :
20
24
php-version : 8.4
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.4-${{ hashFiles('**/composer.json') }}
28
- restore-keys : |
29
- ${{ runner.os }}-php-8.4-
30
-
31
- - name : Install dependencies
32
- if : steps.composer-cache.outputs.cache-hit != 'true'
33
- run : |
34
- composer install --no-interaction --no-progress
35
- composer dump
26
+ - name : Install composer dependencies
27
+ uses : ramsey/composer-install@v3
36
28
37
29
- name : Run analyse phpstan
38
30
run : vendor/bin/phpstan analyse --error-format github
You can’t perform that action at this time.
0 commit comments