From a0774e607f879e552c9e335435f6aa7ad05f62b1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Chris=20Schl=C3=A4pfer?= Date: Sat, 30 Sep 2023 08:26:29 +0200 Subject: [PATCH] Added phpstan workflow --- .github/workflows/phpstan.yml | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) diff --git a/.github/workflows/phpstan.yml b/.github/workflows/phpstan.yml index e69de29..f366219 100644 --- a/.github/workflows/phpstan.yml +++ b/.github/workflows/phpstan.yml @@ -0,0 +1,23 @@ +name: PHPStan + +on: [push] + +jobs: + analyze: + name: Analyze + runs-on: ubuntu-latest + + steps: + - name: Checkout code + uses: actions/checkout@v2 + + - name: Setup PHP + uses: shivammathur/setup-php@v2 + with: + php-version: '8.0' + + - name: Install dependencies + run: composer install --prefer-dist --no-progress --no-suggest + + - name: Run PHPStan + run: vendor/bin/phpstan