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