name: Lint on: [push] jobs: php-cs-fixer: name: PHP CS Fixer runs-on: ubuntu-latest steps: - name: Checkout repository uses: actions/checkout@v3 - name: Setup PHP uses: shivammathur/setup-php@v2 with: php-version: '8.1' coverage: none - name: Install PHP CS Fixer run: composer global require friendsofphp/php-cs-fixer - name: Run PHP CS Fixer run: php-cs-fixer fix - name: Commit changes uses: stefanzweifel/git-auto-commit-action@v4 with: commit_message: Fix styling