summaryrefslogtreecommitdiff
path: root/.github
diff options
context:
space:
mode:
authorParamtamtam <[email protected]>2019-12-25 21:06:58 +0500
committerParamtamtam <[email protected]>2019-12-25 21:06:58 +0500
commit0e1e9e4b23a46864bb58c96f8530f60474461f53 (patch)
tree4e4fb1f2163453fe879bd97efe3245f44eb0a347 /.github
parentd31ffefa68ef2c8f275c459bb50675e9d135f637 (diff)
Workflow updated
Diffstat (limited to '.github')
-rw-r--r--.github/workflows/ci-build.yml3
1 files changed, 3 insertions, 0 deletions
diff --git a/.github/workflows/ci-build.yml b/.github/workflows/ci-build.yml
index 95634566..2aa6c5f8 100644
--- a/.github/workflows/ci-build.yml
+++ b/.github/workflows/ci-build.yml
@@ -46,6 +46,9 @@ jobs:
- name: Syntax check only (lint)
run: find ./src/ -name "*.php" -print0 | xargs -0 -n1 -P8 php -l
+ - name: Check PHP sources using phpstan
+ run: composer require phpstan/phpstan '~0.12' && php ./vendor/bin/phpstan analyze --level max --no-progress --ansi ./src
+
- name: Get Composer Cache Directory # Docs: <https://github.com/actions/cache/blob/master/examples.md#php---composer>
id: composer-cache
run: echo "::set-output name=dir::$(composer config cache-files-dir)"