Skip to content

Commit 73f261f

Browse files
Easier checking, too much going on
1 parent 7df00a3 commit 73f261f

File tree

1 file changed

+5
-27
lines changed

1 file changed

+5
-27
lines changed

.github/workflows/php.yml

Lines changed: 5 additions & 27 deletions
Original file line numberDiff line numberDiff 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 {} \;

0 commit comments

Comments
 (0)