Bring Project and CI Up-to-date #56
Workflow file for this run
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: "Static Analysis" | |
on: | |
pull_request: | |
branches: | |
- 'develop' | |
push: | |
branches: | |
- 'develop' | |
- 'master' | |
jobs: | |
phpstan: | |
runs-on: 'ubuntu-22.04' | |
strategy: | |
matrix: | |
php: | |
- '8.3' | |
steps: | |
- uses: 'actions/checkout@v2' | |
- uses: 'shivammathur/setup-php@v2' | |
with: | |
php-version: '${{ matrix.php }}' | |
- uses: 'ramsey/composer-install@v2' | |
with: | |
dependency-versions: 'highest' | |
# Require PHPStan via command-line instead of adding to Composer's | |
# "require-dev"; we only want to run static analysis once on the highest | |
# version of PHP available. | |
- run: 'composer require --dev phpstan/phpstan phpstan/phpstan-deprecation-rules' | |
- run: './vendor/bin/phpstan analyze --error-format="github"' |