Skip to content

Commit 4cdeda4

Browse files
committed
Debug why PHPStan doesn't detect errors
1 parent 9b62ef2 commit 4cdeda4

File tree

1 file changed

+20
-2
lines changed

1 file changed

+20
-2
lines changed

.github/workflows/phpstan.yml

Lines changed: 20 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,13 +15,31 @@ jobs:
1515
run: .github/jobs/composer_setup.sh
1616
- name: Show the phpstan version
1717
run: webapp/vendor/phpstan/phpstan/phpstan --version
18-
- uses: php-actions/[email protected]
18+
- name: Run PHPStan in the classic way
19+
run: /webapp/vendor/bin/phpstan --configuration=webapp/phpstan.dist.neon
20+
- uses: php-actions/phpstan@v3
1921
with:
2022
configuration: webapp/phpstan.dist.neon
21-
path: webapp/src webapp/tests
2223
php_extensions: gd intl mysqli pcntl zip
2324
autoload_file: webapp/vendor/autoload.php
2425
version: composer
26+
generate_baseline: /tmp/artifacts/phpstan_baseline.xml
27+
command: list
28+
args: -vvv
29+
- uses: php-actions/phpstan@v3
30+
with:
31+
configuration: webapp/phpstan.dist.neon
32+
php_extensions: gd intl mysqli pcntl zip
33+
autoload_file: webapp/vendor/autoload.php
34+
version: composer
35+
args: -vvv
36+
- uses: php-actions/phpstan@v2
37+
with:
38+
configuration: webapp/phpstan.dist.neon
39+
php_extensions: gd intl mysqli pcntl zip
40+
autoload_file: webapp/vendor/autoload.php
41+
version: composer
42+
args: -vvv
2543
- uses: actions/upload-artifact@v4
2644
if: always()
2745
with:

0 commit comments

Comments
 (0)