Skip to content

Commit 6879b1b

Browse files
committed
WIP
1 parent f64e787 commit 6879b1b

File tree

1 file changed

+18
-13
lines changed

1 file changed

+18
-13
lines changed

.github/workflows/phpstan.yml

Lines changed: 18 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,26 @@
1-
name: Fix PHP code style issues
1+
name: PHPStan
22

3-
on: [push]
3+
on:
4+
push:
5+
paths:
6+
- '**.php'
7+
- 'phpstan.neon.dist'
48

59
jobs:
6-
php-code-styling:
10+
phpstan:
11+
name: phpstan
712
runs-on: ubuntu-latest
8-
913
steps:
10-
- name: Checkout code
11-
uses: actions/checkout@v4
14+
- uses: actions/checkout@v4
15+
16+
- name: Setup PHP
17+
uses: shivammathur/setup-php@v2
1218
with:
13-
ref: ${{ github.head_ref }}
19+
php-version: '8.4'
20+
coverage: none
1421

15-
- name: Fix PHP code style issues
16-
uses: aglipanci/laravel-pint-action@2.5
22+
- name: Install composer dependencies
23+
uses: ramsey/composer-install@v3
1724

18-
- name: Commit changes
19-
uses: stefanzweifel/git-auto-commit-action@v5
20-
with:
21-
commit_message: Fix styling
25+
- name: Run PHPStan
26+
run: ./vendor/bin/phpstan --error-format=github

0 commit comments

Comments
 (0)