mirror of
https://github.com/opencultureconsulting/php-basics.git
synced 2025-03-30 00:00:15 +01:00
Add PHPStan GitHub workflow
This commit is contained in:
parent
47b23373b7
commit
f70f4f78e2
26
.github/workflows/phpstan.yml
vendored
Normal file
26
.github/workflows/phpstan.yml
vendored
Normal 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
|
@ -11,4 +11,4 @@ parameters:
|
|||||||
strictRules:
|
strictRules:
|
||||||
noVariableVariables: false
|
noVariableVariables: false
|
||||||
paths:
|
paths:
|
||||||
- src
|
- src/
|
||||||
|
Loading…
x
Reference in New Issue
Block a user