File tree Expand file tree Collapse file tree 2 files changed +24
-44
lines changed
Expand file tree Collapse file tree 2 files changed +24
-44
lines changed Load Diff This file was deleted.
Original file line number Diff line number Diff line change @@ -28,10 +28,32 @@ jobs:
2828 run : |
2929 find . -name "*.php" -not -path "./vendor/*" -exec php -l {} \;
3030
31- # 4. (Optional) Install Composer dependencies - useful if you add dependencies in the future
31+ # 4. Install PHPStan (Static Analysis Tool)
32+ - name : Install PHPStan
33+ run : |
34+ curl -sS https://getcomposer.org/installer | php
35+ php composer.phar require --dev phpstan/phpstan
36+
37+ # 5. Run PHPStan to analyze code quality
38+ - name : Run PHPStan
39+ run : |
40+ vendor/bin/phpstan analyse --level=max
41+
42+ # 6. Install PHP CS Fixer (Code Style Checker)
43+ - name : Install PHP CS Fixer
44+ run : |
45+ curl -sS https://getcomposer.org/installer | php
46+ php composer.phar require --dev friendsofphp/php-cs-fixer
47+
48+ # 7. Run PHP CS Fixer to check code style
49+ - name : Check code style
50+ run : |
51+ vendor/bin/php-cs-fixer fix --dry-run --diff
52+
53+ # 8. (Optional) Install Composer dependencies - useful if you add dependencies in the future
3254 # - name: Install dependencies
3355 # run: composer install --no-progress --no-suggest
3456
35- # 5 . (Optional) Run unit tests - for example, PHPUnit
57+ # 9 . (Optional) Run unit tests - for example, PHPUnit
3658 # - name: Run tests
3759 # run: vendor/bin/phpunit
You can’t perform that action at this time.
0 commit comments