Skip to content

Commit 088f48c

Browse files
committed
Setup simple CI to run phpstan
1 parent 4a83f12 commit 088f48c

File tree

1 file changed

+25
-0
lines changed

1 file changed

+25
-0
lines changed

.github/workflows/phpstan.yml

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
name: PHPStan
2+
3+
on:
4+
push:
5+
branches: [ main ]
6+
pull_request:
7+
branches: [ main ]
8+
9+
jobs:
10+
phpstan:
11+
runs-on: ubuntu-latest
12+
13+
steps:
14+
- uses: actions/checkout@v4
15+
16+
- name: Setup PHP
17+
uses: shivammathur/setup-php@v2
18+
with:
19+
php-version: '8.5'
20+
21+
- name: Install dependencies
22+
run: composer install --prefer-dist --no-progress
23+
24+
- name: Run PHPStan
25+
run: vendor/bin/phpstan analyse

0 commit comments

Comments
 (0)