File tree Expand file tree Collapse file tree 1 file changed +5
-27
lines changed
Expand file tree Collapse file tree 1 file changed +5
-27
lines changed Original file line number Diff line number Diff line change @@ -13,39 +13,17 @@ jobs:
1313 runs-on : ubuntu-latest
1414
1515 steps :
16+ # 1. Pobierz kod z repozytorium
1617 - name : Checkout code
1718 uses : actions/checkout@v3
1819
20+ # 2. Instalacja PHP
1921 - name : Setup PHP
2022 uses : shivammathur/setup-php@v2
2123 with :
2224 php-version : ' 8.1'
2325
24- - name : Install Composer
25- run : |
26- curl -sS https://getcomposer.org/installer | php
27- mv composer.phar /usr/local/bin/composer
28-
26+ # 3. Sprawdzenie składni PHP
2927 - name : Lint PHP files
30- run : find . -name "*.php" -not -path "./vendor/*" -exec php -l {} \;
31-
32- # - name: Install PHPStan
33- # run: composer require --dev phpstan/phpstan
34-
35- # - name: Run PHPStan (temporarily suppressed)
36- # run: vendor/bin/phpstan analyse --configuration=phpstan.neon --no-progress --error-format=table || true
37-
38- # - name: Install PHP CS Fixer
39- # run: composer require --dev friendsofphp/php-cs-fixer
40-
41- # - name: Check code style
42- # run: vendor/bin/php-cs-fixer fix --dry-run --diff
43-
44- # 8. (Optional) Install Composer dependencies - useful if you add dependencies in the future
45- # - name: Install dependencies
46- # run: composer install --no-progress --no-suggest
47-
48- # 9. (Optional) Run unit tests - for example, PHPUnit
49- # - name: Run tests
50- # run: vendor/bin/phpunit
51-
28+ run : |
29+ find . -name "*.php" -not -path "./vendor/*" -exec php -l {} \;
You can’t perform that action at this time.
0 commit comments