From 16302f670610f193896773300ab6740c68d66350 Mon Sep 17 00:00:00 2001 From: Ajay D'Souza Date: Wed, 21 Oct 2026 23:45:53 +0000 Subject: [PATCH] Run PHPStan in CI --- .github/workflows/phpstan.yml | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100644 .github/workflows/phpstan.yml diff --git a/.github/workflows/phpstan.yml b/.github/workflows/phpstan.yml new file mode 100644 index 0000000..bc084a7 --- /dev/null +++ b/.github/workflows/phpstan.yml @@ -0,0 +1,27 @@ +name: PHPStan + +on: + push: + pull_request: + workflow_dispatch: {} + +jobs: + phpstan: + name: 'PHPStan' + runs-on: ubuntu-latest + + steps: + - name: Checkout code + uses: actions/checkout@v6 + + - name: Install PHP + uses: shivammathur/setup-php@v2 + with: + php-version: '8.3' + coverage: none + + - name: Install Composer dependencies + uses: "ramsey/composer-install@v4" + + - name: Run PHPStan + run: vendor/bin/phpstan analyse --memory-limit=2048M --no-progress --error-format=github