Skip to content

Add PHP 8.4 to CI Pipeline #79

Add PHP 8.4 to CI Pipeline

Add PHP 8.4 to CI Pipeline #79

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"'