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
with:
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

@ -1,14 +1,14 @@
{
"name" : "icewind/smb",
"description" : "php wrapper for smbclient and libsmbclient-php",
"license" : "MIT",
"authors" : [
"name": "icewind/smb",
"description": "php wrapper for smbclient and libsmbclient-php",
"license": "MIT",
"authors": [
{
"name" : "Robin Appelman",
"name": "Robin Appelman",
"email": "icewind@owncloud.com"
}
],
"require" : {
"require": {
"php": ">=7.2",
"icewind/streams": ">=0.7.3"
},
@ -18,14 +18,20 @@
"phpstan/phpstan": "^0.12.57",
"psalm/phar": "^4.3"
},
"autoload" : {
"autoload": {
"psr-4": {
"Icewind\\SMB\\": "src/"
}
},
"autoload-dev" : {
"autoload-dev": {
"psr-4": {
"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"
}
}