.github/workflows/php-cs-fixer.yml
name: PHP CS Fixer
on: [push, pull_request]
jobs:
serendipity_hq:
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest]
php: ['7.4']
name: PHP ${{ matrix.php }} on ${{ matrix.os }}
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Setup PHP
uses: shivammathur/setup-php@2.5.0
with:
php-version: ${{ matrix.php }}
coverage: none # disable xdebug, pcov
tools: prestissimo
extensions: ast
- name: Install Composer deps
run: |
composer update --no-interaction --no-suggest
- name: Run PHP CS Fixer
run: |
./vendor/bin/php-cs-fixer fix --allow-risky yes --dry-run -v