Repair PHPStan GHA #3066
Workflow file for this run
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Run PHPStan | |
on: | |
merge_group: | |
pull_request: | |
branches: | |
- main | |
- '[0-9]+.[0-9]+' | |
jobs: | |
phpstan: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Setup composer dependencies | |
run: .github/jobs/composer_setup.sh | |
- name: Show the phpstan version | |
run: webapp/vendor/phpstan/phpstan/phpstan --version | |
- name: Run PHPStan in the classic way | |
run: webapp/vendor/bin/phpstan --configuration=webapp/phpstan.dist.neon | |
- uses: php-actions/phpstan@v3 | |
with: | |
configuration: webapp/phpstan.dist.neon | |
php_extensions: gd intl mysqli pcntl zip | |
autoload_file: webapp/vendor/autoload.php | |
version: composer | |
generate_baseline: /tmp/artifacts/phpstan_baseline.xml | |
command: list | |
args: -vvv | |
- uses: php-actions/phpstan@v3 | |
with: | |
configuration: webapp/phpstan.dist.neon | |
php_extensions: gd intl mysqli pcntl zip | |
autoload_file: webapp/vendor/autoload.php | |
version: composer | |
args: -vvv | |
- uses: php-actions/phpstan@v2 | |
with: | |
configuration: webapp/phpstan.dist.neon | |
php_extensions: gd intl mysqli pcntl zip | |
autoload_file: webapp/vendor/autoload.php | |
version: composer | |
args: -vvv | |
- uses: actions/upload-artifact@v4 | |
if: always() | |
with: | |
path: /tmp/artifacts |