Merge pull request #42 from freerkminnema/patch-2 #90
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: "🔍 Check PHPStan" | |
on: | |
push: | |
paths: | |
- '**.php' | |
- 'phpstan.neon' | |
- 'phpstan-baseline.neon' | |
- '.github/workflows/phpstan.yml' | |
pull_request: | |
jobs: | |
phpstan: | |
runs-on: ubuntu-latest | |
timeout-minutes: 5 | |
steps: | |
- name: "📥 Checkout code" | |
uses: actions/checkout@v4 | |
with: | |
fetch-depth: 0 | |
token: ${{ secrets.GITHUB_TOKEN }} | |
- name: "🐘 Setup PHP" | |
uses: shivammathur/setup-php@v2 | |
with: | |
php-version: '8.1' | |
extensions: dom, curl, libxml, mbstring, zip | |
coverage: xdebug | |
- name: "📦 Install Composer dependencies" | |
uses: ramsey/composer-install@v3 | |
- name: Run PHPStan | |
run: ./vendor/bin/phpstan --error-format=github |