Skip to content

Initial Commit

Initial Commit #2

name: "Static Analysis"
on:
pull_request:
branches:
- 'develop'
push:
branches:
- 'develop'
- 'main'
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 --no-progress --error-format="github"'