Skip to content

Commit ee5f44c

Browse files
committed
ci: add static analysis workflow
1 parent 08169cd commit ee5f44c

File tree

1 file changed

+26
-0
lines changed

1 file changed

+26
-0
lines changed

.github/workflows/static-analysis.yml

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
name: Run static analysis
2+
3+
on:
4+
- push
5+
- pull_request
6+
7+
jobs:
8+
types:
9+
runs-on: ubuntu-latest
10+
11+
steps:
12+
- name: Checkout code
13+
uses: actions/checkout@v4
14+
15+
- name: Setup PHP
16+
uses: shivammathur/setup-php@v2
17+
with:
18+
php-version: 8.3
19+
tools: composer:v2
20+
coverage: none
21+
22+
- name: Install dependencies
23+
run: composer update --prefer-stable --prefer-dist --no-interaction --no-progress
24+
25+
- name: Execute type checking
26+
run: vendor/bin/phpstan --configuration="phpstan.types.neon.dist" --no-progress

0 commit comments

Comments
 (0)