mirror of
https://codeberg.org/icewind/SMB.git
synced 2026-06-03 09:14:06 +02:00
psalm ci
This commit is contained in:
parent
7cb4e41f8a
commit
78b0321887
2 changed files with 60 additions and 27 deletions
27
.github/workflows/ci.yaml
vendored
27
.github/workflows/ci.yaml
vendored
|
|
@ -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
|
||||||
|
|
@ -1,14 +1,14 @@
|
||||||
{
|
{
|
||||||
"name" : "icewind/smb",
|
"name": "icewind/smb",
|
||||||
"description" : "php wrapper for smbclient and libsmbclient-php",
|
"description": "php wrapper for smbclient and libsmbclient-php",
|
||||||
"license" : "MIT",
|
"license": "MIT",
|
||||||
"authors" : [
|
"authors": [
|
||||||
{
|
{
|
||||||
"name" : "Robin Appelman",
|
"name": "Robin Appelman",
|
||||||
"email": "icewind@owncloud.com"
|
"email": "icewind@owncloud.com"
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"require" : {
|
"require": {
|
||||||
"php": ">=7.2",
|
"php": ">=7.2",
|
||||||
"icewind/streams": ">=0.7.3"
|
"icewind/streams": ">=0.7.3"
|
||||||
},
|
},
|
||||||
|
|
@ -18,14 +18,20 @@
|
||||||
"phpstan/phpstan": "^0.12.57",
|
"phpstan/phpstan": "^0.12.57",
|
||||||
"psalm/phar": "^4.3"
|
"psalm/phar": "^4.3"
|
||||||
},
|
},
|
||||||
"autoload" : {
|
"autoload": {
|
||||||
"psr-4": {
|
"psr-4": {
|
||||||
"Icewind\\SMB\\": "src/"
|
"Icewind\\SMB\\": "src/"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"autoload-dev" : {
|
"autoload-dev": {
|
||||||
"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"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue