File tree Expand file tree Collapse file tree 1 file changed +38
-0
lines changed
Expand file tree Collapse file tree 1 file changed +38
-0
lines changed Original file line number Diff line number Diff line change 1+ name : Analyse
2+
3+ on :
4+ push :
5+ branches : [master]
6+ pull_request :
7+ branches : [master]
8+
9+ jobs :
10+ phpstan :
11+ runs-on : ubuntu-latest
12+
13+ steps :
14+ - name : Checkout code
15+ uses : actions/checkout@v4
16+
17+ - name : Setup PHP
18+ uses : shivammathur/setup-php@v2
19+ with :
20+ php-version : 8.3
21+
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.3-${{ hashFiles('**/composer.json') }}
28+ restore-keys : |
29+ ${{ runner.os }}-php-8.3-
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
36+
37+ - name : Run analyse phpstan
38+ run : vendor/bin/phpstan analyse --error-format github
You can’t perform that action at this time.
0 commit comments