Skip to content

Commit 46e991d

Browse files
committed
Github Actions: added PHPStan level 1
1 parent 36f912c commit 46e991d

File tree

2 files changed

+23
-0
lines changed

2 files changed

+23
-0
lines changed
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
name: Static Analysis
2+
3+
on: [push, pull_request]
4+
5+
jobs:
6+
phpstan:
7+
name: PHPStan
8+
runs-on: ubuntu-latest
9+
steps:
10+
- uses: actions/checkout@v2
11+
- uses: shivammathur/setup-php@v2
12+
with:
13+
php-version: 7.4
14+
coverage: none
15+
16+
- run: composer install --no-interaction --prefer-dist
17+
- run: composer create-project phpstan/phpstan temp/phpstan ^0.12 --no-progress
18+
- run: temp/phpstan/phpstan analyse --configuration tests/phpstan.neon

tests/phpstan.neon

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
parameters:
2+
level: 1
3+
4+
paths:
5+
- ../src

0 commit comments

Comments
 (0)