code style

This commit is contained in:
Robin Appelman 2021-11-02 15:40:54 +01:00
commit 306ec135c8
3 changed files with 45 additions and 30 deletions

View file

@ -18,23 +18,6 @@ jobs:
with:
args: --diff --dry-run --allow-risky yes --stop-on-violation --using-cache=no --path-mode=intersection
phpstan:
name: PHPStan Static Analysis
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v2
- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: '8.0'
extensions: apcu, smbclient
- name: Composer
run: composer install
- env:
BACKEND: smbclient
run: php ./vendor/bin/phpstan analyse --level 6 src
php-versions:
runs-on: ubuntu-20.04
name: Unit tests
@ -200,6 +183,8 @@ jobs:
- "8.0"
steps:
- name: krb5-dev
run: sudo apt-get install -y libkrb5-dev
- name: Checkout
uses: actions/checkout@master
- name: Set up php
@ -208,8 +193,31 @@ jobs:
php-version: "${{ matrix.php-version }}"
tools: composer:v1
coverage: none
extensions: apcu, smbclient
extensions: apcu, smbclient, krb5
env:
fail-fast: true
- name: Install dependencies
run: composer i
- name: Run coding standards check
run: composer run psalm
run: composer run psalm
phpstan:
name: PHPStan Static Analysis
runs-on: ubuntu-20.04
steps:
- name: krb5-dev
run: sudo apt-get install -y libkrb5-dev
- uses: actions/checkout@v2
- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: '8.0'
extensions: apcu, smbclient, krb5
env:
fail-fast: true
- name: Composer
run: composer install
- env:
BACKEND: smbclient
run: php ./vendor/bin/phpstan analyse --level 6 src