Skip to content

⚡ Support for PHP 8.2 #10

⚡ Support for PHP 8.2

⚡ Support for PHP 8.2 #10

Workflow file for this run

name: PHP-CS-Fixer
on: pull_request
jobs:
lint:
name: PHP-CS-Fixer (PHP ${{ matrix.php-versions }})
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
php-versions: ["8.1", "8.2"]
steps:
- name: Checkout the code
uses: actions/checkout@v3
with:
ref: ${{ github.ref }}
- name: Composer cache
id: composer_cache
uses: actions/cache@v3
with:
path: ./vendor
key: ${{ runner.os }}-composer-${{ hashFiles('**/composer.lock') }}
restore-keys: |
${{ runner.os }}-composer-
- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.php-versions }}
- name: Install composer
shell: bash
if: steps.composer_cache.outputs.cache-hit != 'true'
run: |
echo 'Install packages'
composer install -n --prefer-dist
- name: Run php-cs-fixer
run: vendor/bin/php-cs-fixer fix --path-mode=intersection --dry-run --diff .