Skip to content

Commit 4d4230b

Browse files
md's fix
1 parent 3d518f8 commit 4d4230b

File tree

2 files changed

+24
-44
lines changed

2 files changed

+24
-44
lines changed

.github/SUPPORT.md

Lines changed: 0 additions & 42 deletions
This file was deleted.

.github/workflows/php.yml

Lines changed: 24 additions & 2 deletions
Original file line numberDiff line numberDiff 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

0 commit comments

Comments
 (0)