Skip to content

Update PHP version for PHPStan workflow #174

Update PHP version for PHPStan workflow

Update PHP version for PHPStan workflow #174

Workflow file for this run

name: PHPStan
on:
push:
branches: [5.0, 5.1]
pull_request:
branches: [5.0, 5.1]
workflow_dispatch:
jobs:
PHPStan:
strategy:
fail-fast: false
matrix:
php_versions: ['8.1', '8.2', '8.3']
runs-on: ubuntu-latest
name: PHPStan - ${{ matrix.php_versions }}
steps:
- uses: actions/checkout@v4
- name: Setup PHP,with composer and extensions
uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.php_versions }}
- name: Install Dependencies
run: composer install --no-ansi --no-interaction --no-scripts --no-progress --prefer-dist
- name: Run PHPStan
run: vendor/bin/phpstan analyse app/src/{Controller,Csrf,Error,Event,Exceptions,I18n,Listeners,Log,Mail,Middlewares,Routes,Seeder,Sprinkle,Sprunje,Testing,Throttle,Validators} app/tests/Integration/{Controllers,Csrf,Error,Exceptions,Mail,Middlewares,ServicesProvider,Session,Sprunje,Throttle,Twig,Util} app/tests/Unit/{Error,Event,Middlewares,Seeder,Sprunje,Util,Validators}