From 1c65d6da07228805945d7daf5b2d99fed6b13b53 Mon Sep 17 00:00:00 2001 From: Abrar Ahmad Date: Tue, 30 Aug 2022 14:02:02 +0500 Subject: [PATCH] add phpstan --- .github/workflows/ci.yml | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index a9da7221..07ecbc6a 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -102,3 +102,13 @@ jobs: author_name: "PHP CS Fixer" author_email: "phpcsfixer@example.com" message: Fix code style (php-cs-fixer) + + phpstan: + name: Static analysis (PHPStan) + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v2 + - name: Install composer dependencies + run: composer install + - name: Run phpstan + run: vendor/bin/phpstan analyse