Skip to content

Upgrade to php 8.2 as default version for tests and static-analysis (… #61

Upgrade to php 8.2 as default version for tests and static-analysis (…

Upgrade to php 8.2 as default version for tests and static-analysis (… #61

Workflow file for this run

name: PHPStan
on:
push:
paths:
- '**.php'
- 'phpstan.neon'
jobs:
phpstan:
name: phpstan
runs-on: ubuntu-latest
strategy:
matrix:
php: [ "7.4", "8.1" ]
steps:
- uses: actions/checkout@v2
- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.php }}
extensions: dom, curl, libxml, mbstring, zip, pspell, intl, iconv
coverage: none
- name: Cache composer dependencies
uses: actions/cache@v2
with:
path: vendor
key: composer-${{ hashFiles('composer.lock') }}
- name: Run composer install
run: composer install -n --prefer-dist
- name: Run PHPStan
run: ./vendor/bin/phpstan analyse src -c phpstan.${{ matrix.php }}.neon