.github/workflows/code-style.yml
name: Code Style
on:
push:
branches:
- master
- v*
pull_request:
types:
- synchronize
- opened
jobs:
code-style:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: '8.3'
- name: Validate composer.json
run: composer validate --strict
- name: Install dependencies
run: composer install --prefer-dist --no-progress
- name: Run style check
run: ./vendor/bin/php-cs-fixer fix --dry-run