Skip to content

Commit 5d6b8cd

Browse files
#234: Added PHPStan to workflow
1 parent 7b9c219 commit 5d6b8cd

File tree

1 file changed

+16
-1
lines changed

1 file changed

+16
-1
lines changed

.github/workflows/build.yaml

Lines changed: 16 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,12 +17,27 @@ jobs:
1717
- name: 'Setup PHP'
1818
uses: 'shivammathur/setup-php@v2'
1919
with:
20-
php-version: '8.3'
20+
php-version: '8.0'
2121
- name: 'Composer Install'
2222
uses: 'ramsey/composer-install@v3'
2323
- name: 'Rector'
2424
run: 'vendor/bin/rector process --dry-run --no-progress-bar --ansi'
2525

26+
phpstan:
27+
name: 'PHPStan'
28+
runs-on: 'ubuntu-24.04'
29+
steps:
30+
- name: 'Checkout'
31+
uses: 'actions/checkout@v4'
32+
- name: 'Setup PHP'
33+
uses: 'shivammathur/setup-php@v2'
34+
with:
35+
php-version: '8.0'
36+
- name: 'Composer Install'
37+
uses: 'ramsey/composer-install@v3'
38+
- name: 'PHPStan'
39+
run: 'vendor/bin/phpstan analyze --no-progress --ansi'
40+
2641
phpunit:
2742
name: 'PHPUnit'
2843
runs-on: 'ubuntu-24.04'

0 commit comments

Comments
 (0)