PHP Static Analysis #147
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: 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 |