Add PHP 8.4 to CI Pipeline #79
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.4' | |
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 --no-progress --error-format="github"' |