Skip to content

phpstan

phpstan #312

Workflow file for this run

name: phpstan
on:
push:
branches: [ "master" ]
pull_request:
types:
- opened
- ready_for_review
- reopened
- synchronize
schedule:
- cron: '0 0 * * *'
jobs:
package-phpstan:
if: ${{ github.event_name == 'push' || !github.event.pull_request.draft }}
runs-on: ubuntu-latest
strategy:
fail-fast: true
matrix:
php: [8.2, 8.3]
laravel: [10, 11]
steps:
- uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.php }}
tools: composer:v2
coverage: none
- uses: actions/checkout@v4
- name: Install Dependencies
run: composer install --no-interaction --prefer-dist --optimize-autoloader --dev
- name: PHPStan Static Analysis
uses: php-actions/phpstan@v3
with:
level: 4
path: src/