Attempt to install phpstan using github action. #516
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: Clear Composer Cache | |
run: composer clear-cache | |
- name: Install Composer dependencies | |
run: composer install --no-interaction | |
- name: PHPStan Static Analysis | |
run: vendor/bin/phpstan --memory-limit=1G --error-format=github |