Skip to content

PHP Static Analysis #171

PHP Static Analysis

PHP Static Analysis #171

Workflow file for this run

name: PHP Static Analysis
on:
push:
branches:
- main
pull_request:
schedule:
- cron: '20 16 * * SUN'
jobs:
phpstan:
name: PHP Static Analysis
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup tools
uses: shivammathur/setup-php@v2
with:
php-version: 8.2
tools: cs2pr
coverage: none
- name: Install Composer dependencies
uses: ramsey/composer-install@v2
- name: Cache PHPStan
uses: actions/cache@v3
with:
path: var/phpstan/
key: phpstan-${{ github.sha }}
- name: Run PHP Static Analysis
run: vendor/bin/phpstan analyse --no-progress --error-format=checkstyle | cs2pr