File tree 1 file changed +18
-13
lines changed 1 file changed +18
-13
lines changed Original file line number Diff line number Diff line change 1
- name : Fix PHP code style issues
1
+ name : PHPStan
2
2
3
- on : [push]
3
+ on :
4
+ push :
5
+ paths :
6
+ - ' **.php'
7
+ - ' phpstan.neon.dist'
4
8
5
9
jobs :
6
- php-code-styling :
10
+ phpstan :
11
+ name : phpstan
7
12
runs-on : ubuntu-latest
8
-
9
13
steps :
10
- - name : Checkout code
11
- uses : actions/checkout@v4
14
+ - uses : actions/checkout@v4
15
+
16
+ - name : Setup PHP
17
+ uses : shivammathur/setup-php@v2
12
18
with :
13
- ref : ${{ github.head_ref }}
19
+ php-version : ' 8.4'
20
+ coverage : none
14
21
15
- - name : Fix PHP code style issues
16
- uses : aglipanci/laravel-pint-action@2.5
22
+ - name : Install composer dependencies
23
+ uses : ramsey/composer-install@v3
17
24
18
- - name : Commit changes
19
- uses : stefanzweifel/git-auto-commit-action@v5
20
- with :
21
- commit_message : Fix styling
25
+ - name : Run PHPStan
26
+ run : ./vendor/bin/phpstan --error-format=github
You can’t perform that action at this time.
0 commit comments