Drop PHP 8.1 support #3
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: 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.2", "8.3"] | |
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 |