Skip to content

Commit 7654ed2

Browse files
Michael Vasseurvmcj
authored andcommitted
Show the PHPStan version
Also pin to the second to last released version for the GHA as the last one crashes. (cherry picked from commit bf67a46)
1 parent d5ff9b4 commit 7654ed2

File tree

1 file changed

+28
-0
lines changed

1 file changed

+28
-0
lines changed

.github/workflows/phpstan.yml

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
name: Run PHPStan
2+
on:
3+
merge_group:
4+
pull_request:
5+
branches:
6+
- main
7+
- '[0-9]+.[0-9]+'
8+
9+
jobs:
10+
phpstan:
11+
runs-on: ubuntu-latest
12+
steps:
13+
- uses: actions/checkout@v4
14+
- name: Setup composer dependencies
15+
run: .github/jobs/composer_setup.sh
16+
- name: Show the phpstan version
17+
run: webapp/vendor/phpstan/phpstan/phpstan --version
18+
- uses: php-actions/[email protected]
19+
with:
20+
configuration: webapp/phpstan.dist.neon
21+
path: webapp/src webapp/tests
22+
php_extensions: gd intl mysqli pcntl zip
23+
autoload_file: webapp/vendor/autoload.php
24+
version: composer
25+
- uses: actions/upload-artifact@v4
26+
if: always()
27+
with:
28+
path: /tmp/artifacts

0 commit comments

Comments
 (0)