Skip to content

Commit 252bd9b

Browse files
committed
Add PHPStan to CI
1 parent 016d7b8 commit 252bd9b

File tree

1 file changed

+19
-0
lines changed

1 file changed

+19
-0
lines changed

.github/workflows/ci.yml

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,25 @@ jobs:
1515
- name: Validate composer.json
1616
run: composer validate --strict --no-check-lock
1717

18+
static_analysis:
19+
name: Static analysis
20+
runs-on: ubuntu-latest
21+
steps:
22+
- uses: actions/checkout@v4
23+
24+
- uses: shivammathur/setup-php@v2
25+
with:
26+
coverage: none
27+
php-version: '8.2'
28+
29+
- name: Install dependencies
30+
run: composer update --ansi --no-progress --prefer-dist --no-interaction
31+
32+
- name: Install PHPUnit
33+
run: vendor/bin/simple-phpunit install
34+
35+
- run: vendor/bin/phpstan analyze
36+
1837
tests:
1938
name: "Tests on PHP ${{ matrix.php }}${{ matrix.name_suffix }}"
2039
runs-on: ubuntu-latest

0 commit comments

Comments
 (0)