Fix the way phpstan is invoked in GitHub Action. #515
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |