Skip to content

Add support for PHP >8.1 and PHPStan >1.10.* #22

Add support for PHP >8.1 and PHPStan >1.10.*

Add support for PHP >8.1 and PHPStan >1.10.* #22

name: Coding Standards
on:
pull_request: null
push:
branches:
- master
jobs:
coding_standards:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: shivammathur/setup-php@v2
with:
php-version: 8.2
coverage: none
- name: Load dependencies from cache
id: composer-cache
run: |
echo "::set-output name=dir::$(composer config cache-files-dir)"
- uses: actions/cache@v1
with:
path: ${{ steps.composer-cache.outputs.dir }}
key: ${{ runner.os }}-php7.3-composer-${{ hashFiles('**/composer.json') }}
restore-keys: |
${{ runner.os }}-php7.3-composer-
- run: composer validate --strict
- run: composer install --prefer-dist --no-progress --no-suggest
- run: composer run-script cs