Add PHPStan GitHub workflow

This commit is contained in:
Sebastian Meyer 2023-11-21 17:19:58 +01:00
parent 47b23373b7
commit f70f4f78e2
2 changed files with 27 additions and 1 deletions

26
.github/workflows/phpstan.yml vendored Normal file
View File

@ -0,0 +1,26 @@
name: PHPStan
on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]
jobs:
phpstan:
runs-on: ubuntu-latest
steps:
- name: Checkout Source Code
uses: actions/checkout@v4
- name: Install Dependencies
uses: php-actions/composer@v6
with:
command: update
php_version: "8.0"
- name: PHPStan Static Analysis
uses: php-actions/phpstan@v3
with:
path: src/
configuration: phpstan.dist.neon

View File

@ -11,4 +11,4 @@ parameters:
strictRules: strictRules:
noVariableVariables: false noVariableVariables: false
paths: paths:
- src - src/