Skip to content

PHP Static Analysis #147

PHP Static Analysis

PHP Static Analysis #147

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@v2
- name: Setup tools
uses: shivammathur/setup-php@v2
with:
php-version: 8.1
tools: cs2pr
coverage: none
- name: Install Composer dependencies
uses: ramsey/composer-install@v2
- name: Cache PHPStan
uses: actions/cache@v2
with:
path: var/phpstan/
key: phpstan-${{ github.sha }}
restore-keys: phpstan-
- name: Run PHP Static Analysis
run: vendor/bin/phpstan analyse --no-progress --error-format=checkstyle | cs2pr