name: php-cs-fixer

on: [push, pull_request]

jobs:

  php-cs-fixer:
    runs-on: ubuntu-latest
    steps:
      - uses: actions/checkout@v2
      - name: Install PHP with extensions
        uses: shivammathur/setup-php@v2
        with:
          php-version: '8.0'
          coverage: none
          tools: php-cs-fixer:3
      - name: Run PHP-CS-Fixer
        run: "php-cs-fixer fix --allow-risky=yes --diff --dry-run"
