This commit is contained in:
Robin Appelman 2021-03-09 18:12:08 +01:00
commit 78b0321887
2 changed files with 60 additions and 27 deletions

View file

@ -83,3 +83,30 @@ jobs:
- uses: codecov/codecov-action@v1 - uses: codecov/codecov-action@v1
with: with:
files: ./coverage.xml files: ./coverage.xml
static-psalm-analysis:
runs-on: ubuntu-latest
name: Psalm static analysis
strategy:
matrix:
php-version:
- "7.2"
- "7.3"
- "7.4"
- "8.0"
steps:
- name: Checkout
uses: actions/checkout@master
- name: Set up php
uses: shivammathur/setup-php@master
with:
php-version: "${{ matrix.php-version }}"
tools: composer:v1
coverage: none
extensions: apcu, smbclient
- name: Install dependencies
run: composer i
- name: Run coding standards check
run: composer run psalm

View file

@ -27,5 +27,11 @@
"psr-4": { "psr-4": {
"Icewind\\SMB\\Test\\": "tests/" "Icewind\\SMB\\Test\\": "tests/"
} }
},
"scripts": {
"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"
} }
} }