Skip to content

Fix the way phpstan is invoked in GitHub Action. #515

Fix the way phpstan is invoked in GitHub Action.

Fix the way phpstan is invoked in GitHub Action. #515

Workflow file for this run

name: PHPStan for OpenLab custom files
on:
push:
paths:
- '**.php'
- '**.yml'
jobs:
phpstan:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
token: ${{ secrets.GITHUB_TOKEN }}
submodules: recursive
- uses: php-actions/composer@v6
- name: Install PHPStan
run: composer require --dev phpstan/phpstan
- name: PHPStan Static Analysis
run: vendor/bin/phpstan --memory-limit=1G --error-format=github