PHP Static Analysis #171
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@v4 | |
- name: Setup tools | |
uses: shivammathur/setup-php@v2 | |
with: | |
php-version: 8.2 | |
tools: cs2pr | |
coverage: none | |
- name: Install Composer dependencies | |
uses: ramsey/composer-install@v2 | |
- name: Cache PHPStan | |
uses: actions/cache@v3 | |
with: | |
path: var/phpstan/ | |
key: phpstan-${{ github.sha }} | |
- name: Run PHP Static Analysis | |
run: vendor/bin/phpstan analyse --no-progress --error-format=checkstyle | cs2pr |