Skip to content

Commit

Permalink
Add PHPStan checks
Browse files Browse the repository at this point in the history
  • Loading branch information
franmomu authored and greg0ire committed Dec 6, 2019
1 parent 5a8f4dc commit c07455e
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 0 deletions.
12 changes: 12 additions & 0 deletions .github/workflows/qa.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
on: [push, pull_request]
name: Quality assurance
jobs:
phpstan:
name: PHPStan
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@master
- name: PHPStan
uses: "docker://oskarstark/phpstan-ga"
with:
args: analyse
14 changes: 14 additions & 0 deletions phpstan.neon.dist
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
parameters:
level: 1

paths:
- src
# Uncomment this, when phpstan extensions are allowed
# - tests

excludes_analyse:
- src/Test/AbstractWidgetTestCase.php
- tests/bootstrap.php

autoload_files:
- vendor/autoload.php

0 comments on commit c07455e

Please sign in to comment.