Skip to content

Commit

Permalink
Show the PHPStan version
Browse files Browse the repository at this point in the history
Also pin to the second to last released version for the GHA as the last one crashes.

(cherry picked from commit bf67a46)
  • Loading branch information
Michael Vasseur authored and vmcj committed Dec 3, 2024
1 parent d5ff9b4 commit 7654ed2
Showing 1 changed file with 28 additions and 0 deletions.
28 changes: 28 additions & 0 deletions .github/workflows/phpstan.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
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
- uses: php-actions/[email protected]
with:
configuration: webapp/phpstan.dist.neon
path: webapp/src webapp/tests
php_extensions: gd intl mysqli pcntl zip
autoload_file: webapp/vendor/autoload.php
version: composer
- uses: actions/upload-artifact@v4
if: always()
with:
path: /tmp/artifacts

0 comments on commit 7654ed2

Please sign in to comment.