Merge pull request #192 from ToshY/dependabot/github_actions/master/p… #406
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: PHPCS | |
| on: | |
| push: | |
| branches: | |
| - master | |
| pull_request: | |
| branches: | |
| - master | |
| permissions: | |
| contents: read | |
| jobs: | |
| phpcs: | |
| name: PHP CS Fixer | |
| runs-on: ubuntu-latest | |
| strategy: | |
| matrix: | |
| php-versions: | |
| - '8.1' | |
| - '8.2' | |
| - '8.3' | |
| - '8.4' | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v6 | |
| - name: Setup PHP | |
| uses: shivammathur/setup-php@v2 | |
| with: | |
| php-version: ${{ matrix.php-versions }} | |
| - name: Install Composer dependencies | |
| uses: ramsey/composer-install@v3 | |
| - name: PHP CS Fixer | |
| run: vendor/bin/php-cs-fixer fix --dry-run -v --diff | |
| env: | |
| PHP_CS_FIXER_IGNORE_ENV: ${{ matrix.php-versions == '8.4' && '1' || '' }} |