mirror of
https://codeberg.org/icewind/SearchDAV.git
synced 2026-06-03 09:34:08 +02:00
add phpstan in ci
This commit is contained in:
parent
4d51484de3
commit
b47321646b
2 changed files with 19 additions and 2 deletions
18
.github/workflows/static-analysis.yml
vendored
18
.github/workflows/static-analysis.yml
vendored
|
|
@ -2,7 +2,23 @@ name: Php Static analysis
|
|||
on: [push, pull_request]
|
||||
|
||||
jobs:
|
||||
static-psalm-analysis:
|
||||
psalm:
|
||||
runs-on: ubuntu-20.04
|
||||
steps:
|
||||
- name: Checkout
|
||||
uses: actions/checkout@master
|
||||
- name: Set up php
|
||||
uses: shivammathur/setup-php@master
|
||||
with:
|
||||
php-version: 7.4
|
||||
tools: composer:v1
|
||||
coverage: none
|
||||
extensions: redis
|
||||
- name: Install dependencies
|
||||
run: composer i
|
||||
- name: Run coding standards check
|
||||
run: composer run psalm
|
||||
phpstan:
|
||||
runs-on: ubuntu-20.04
|
||||
steps:
|
||||
- name: Checkout
|
||||
|
|
|
|||
|
|
@ -33,6 +33,7 @@
|
|||
"lint": "parallel-lint --exclude src --exclude vendor --exclude target --exclude build .",
|
||||
"cs:check": "php-cs-fixer fix --dry-run --diff",
|
||||
"cs:fix": "php-cs-fixer fix",
|
||||
"psalm": "psalm.phar"
|
||||
"psalm": "psalm.phar",
|
||||
"phpstan": "phpstan analyse --level 5 src"
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue