refactor: pair violations with baseline entries in one place #149
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: PHP CS Fixer | |
| on: | |
| pull_request: | |
| permissions: | |
| contents: read | |
| jobs: | |
| cs-fixer: | |
| runs-on: ubuntu-22.04 | |
| steps: | |
| - uses: actions/checkout@v7 | |
| - name: Install PHP | |
| uses: shivammathur/setup-php@f3e473d116dcccaddc5834248c87452386958240 # 2.37.2 | |
| with: | |
| php-version: '8.0' | |
| tools: composer:v2.2 | |
| env: | |
| GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
| - name: Cache Composer packages | |
| uses: actions/cache@v6 | |
| with: | |
| path: vendor | |
| key: ${{ runner.os }}-php-cs-fixer-${{ hashFiles('**/composer.lock') }} | |
| restore-keys: | | |
| ${{ runner.os }}-php-cs-fixer- | |
| - name: Install dependencies | |
| run: composer install --prefer-dist | |
| - name: Run PHP CS Fixer | |
| run: ./bin/php-cs-fixer check --diff |