File tree Expand file tree Collapse file tree 2 files changed +43
-0
lines changed Expand file tree Collapse file tree 2 files changed +43
-0
lines changed Original file line number Diff line number Diff line change 1+ name : PHPStan Check
2+
3+ on :
4+ push :
5+ branches : [ "master" ]
6+ pull_request :
7+ branches : [ "master" ]
8+
9+ permissions :
10+ contents : read
11+
12+ jobs :
13+ build :
14+
15+ runs-on : ubuntu-latest
16+
17+ steps :
18+ - uses : actions/checkout@v4
19+
20+ - name : Validate composer.json and composer.lock
21+ run : composer validate --strict
22+
23+ - name : Cache Composer packages
24+ id : composer-cache
25+ uses : actions/cache@v3
26+ with :
27+ path : vendor
28+ key : ${{ runner.os }}-php-${{ hashFiles('**/composer.lock') }}
29+ restore-keys : |
30+ ${{ runner.os }}-php-
31+
32+ - name : Install dependencies
33+ run : composer install --prefer-dist --no-progress
34+
35+ - name : Run PHPStan
36+ run : composer run-script phpstan
Original file line number Diff line number Diff line change 1616 "psr-4" : {
1717 "Tourze\\ Symfony\\ Aop\\ " : " src"
1818 }
19+ },
20+ "require-dev" : {
21+ "phpunit/phpunit" : " ^10.0" ,
22+ "phpstan/phpstan" : " ^2.1"
23+ },
24+ "scripts" : {
25+ "phpstan" : " phpstan analyse src -l 1"
1926 }
2027}
You can’t perform that action at this time.
0 commit comments