Skip to content

Merge pull request #42 from freerkminnema/patch-2 #90

Merge pull request #42 from freerkminnema/patch-2

Merge pull request #42 from freerkminnema/patch-2 #90

Workflow file for this run

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