From a2e40a569eaedfe95e8a4bf247396b73a24a70f5 Mon Sep 17 00:00:00 2001 From: Jamiel <20553479+jamielsharief@users.noreply.github.com> Date: Mon, 4 Jan 2021 14:16:27 +0100 Subject: [PATCH] Added PHPStan to CI --- .github/workflows/ci.yml | 6 ++++-- composer.json | 3 ++- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index fe4cd48..e1bf205 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -36,10 +36,12 @@ jobs: run: | composer require php-coveralls/php-coveralls:^2.4 --dev --no-update composer update --no-progress --prefer-dist - - name: Running PHPUnit + - name: Run PHPUnit run: "php vendor/bin/phpunit --coverage-clover=clover.xml" - name: Coveralls env: COVERALLS_REPO_TOKEN: ${{ secrets.GITHUB_TOKEN }} run: "php vendor/bin/php-coveralls --verbose" - if: ${{ success() }} \ No newline at end of file + if: ${{ success() }} + - name: Run PHPStan + run: "vendor/bin/phpstan analyse src --error-format=github" diff --git a/composer.json b/composer.json index a17e5ff..f24d734 100644 --- a/composer.json +++ b/composer.json @@ -30,6 +30,7 @@ }, "require-dev": { - "phpunit/phpunit": "^9.2" + "phpunit/phpunit": "^9.2", + "phpstan/phpstan": "^0.12.64" } }