Skip to content

Update CI to test on PHP 8.2 and 8.3 #327

Update CI to test on PHP 8.2 and 8.3

Update CI to test on PHP 8.2 and 8.3 #327

Workflow file for this run

name: PHP Lint
on: [ push, pull_request ]
jobs:
lint:
runs-on: ubuntu-latest
steps:
- name: Checkout the code
uses: actions/checkout@v2
- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: '8.2'
coverage: none
- name: Get Composer cache directory
id: cache-composer
run: echo "dir=$(composer config cache-files-dir)" >> $GITHUB_OUTPUT
- name: Restore Composer cache
uses: actions/cache@v3
with:
path: ${{ steps.cache-composer.outputs.dir }}
key: ${{ runner.os }}-${{ github.ref_name }}-composer-${{ hashFiles('**/composer.lock') }}
- name: Install Composer dependencies
run: |
composer install --no-interaction --prefer-dist
- name: Check for code style violation with PHP-CS-Fixer
run: vendor/bin/php-cs-fixer fix --diff