Skip to content

Upgrade to PHPUnit 11 #2

Upgrade to PHPUnit 11

Upgrade to PHPUnit 11 #2

Workflow file for this run

name: PHPStan
on:
pull_request:
workflow_dispatch:
permissions:
contents: read
jobs:
phpstan:
runs-on: ${{ matrix.operating-system }}
strategy:
matrix:
operating-system: [ubuntu-latest]
php-versions: ["8.1", "8.2"]
name: PHP ${{ matrix.php-versions }} Static Analysis on ${{ matrix.operating-system }}
env:
PHP_EXTENSIONS: mbstring
key: cache-v1
steps:
- uses: actions/checkout@v3
- name: Setup Cache environment
id: extcache
uses: shivammathur/cache-extensions@v1
with:
php-version: ${{ matrix.php-versions }}
extensions: ${{ env.PHP_EXTENSIONS }}
key: ${{ env.key }}
- name: Cache PHP extensions
uses: actions/cache@v3
with:
path: ${{ steps.extcache.outputs.dir }}
key: ${{ steps.extcache.outputs.key }}
restore-keys: ${{ steps.extcache.outputs.key }}
- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.php-versions }}
extensions: ${{ env.PHP_EXTENSIONS }}
###> Composer ###
- name: Install Composer packages
run: composer install -q --no-ansi --no-interaction --no-scripts --no-progress --prefer-dist
###< Composer ###
- name: Run PHPSTAN
run: $GITHUB_WORKSPACE/vendor/bin/phpstan --level=9 --error-format=github