Skip to content

Add test to php 8.4 #13

Add test to php 8.4

Add test to php 8.4 #13

Workflow file for this run

name: style-fix
on:
push:
branches: [master]
jobs:
style:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: '8.2'
coverage: xdebug
- name: Cache Composer packages
id: composer-cache
uses: actions/cache@v4
with:
path: vendor
key: ${{ runner.os }}-php-8.2-${{ hashFiles('**/composer.lock') }}
restore-keys: |
${{ runner.os }}-php--8.2
- name: Install dependencies
if: steps.composer-cache.outputs.cache-hit != 'true'
run: |
composer install
composer dump
- name: Fix styles
run: vendor/bin/php-cs-fixer fix
- uses: EndBug/add-and-commit@v9
- name: Run style
run: vendor/bin/php-cs-fixer fix --dry-run --diff --format junit