Skip to content

If installed, prefer the ueberdosis/pandoc package over ryakad/pandoc-php #48

If installed, prefer the ueberdosis/pandoc package over ryakad/pandoc-php

If installed, prefer the ueberdosis/pandoc package over ryakad/pandoc-php #48

name: Static Analysis
on:
push:
branches:
- main
pull_request:
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: 7.4
tools: phpstan, cs2pr
- 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: phpstan analyse --no-progress --error-format=checkstyle | cs2pr