add support for large exclusion patterns and associated tests #953
Workflow file for this run
This file contains 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: Codestyle | |
on: | |
push: | |
branches: [ 'master', '2.x', '3.x' ] | |
paths: | |
- '**.php' | |
- 'composer.json' | |
- '.php-cs-fixer.php' | |
- '.github/workflows/codestyle.yml' | |
pull_request: | |
branches: [ '*' ] | |
paths: | |
- '**.php' | |
- 'composer.json' | |
- '.php-cs-fixer.php' | |
- '.github/workflows/codestyle.yml' | |
jobs: | |
php-tests: | |
runs-on: ubuntu-latest | |
timeout-minutes: 15 | |
env: | |
COMPOSER_NO_INTERACTION: 1 | |
strategy: | |
matrix: | |
php: [8.3] | |
dependency-version: [prefer-stable] | |
name: Codestyle check | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v4 | |
- name: Setup PHP | |
uses: shivammathur/setup-php@v2 | |
with: | |
php-version: ${{ matrix.php }} | |
coverage: none | |
tools: composer:v2, cs2pr | |
- name: Cache Composer packages | |
id: composer-cache | |
uses: actions/cache@v4 | |
with: | |
path: | | |
vendor | |
.php-cs-fixer.cache | |
key: ${{ runner.os }}-php-cs-fixer-${{ matrix.php }}-${{ matrix.setup }}-${{ hashFiles('composer.json') }} | |
- name: Install dependencies | |
if: steps.composer-cache.outputs.cache-hit != 'true' | |
run: composer install --prefer-dist --no-progress | |
- name: Run PHPCS for the codestyle | |
run: vendor/bin/phpcs --report=checkstyle -q | cs2pr || true | |
- name: Run PHP Coding Standards Fixer | |
run: | | |
vendor/bin/php-cs-fixer fix --dry-run --diff --ansi || true | |
vendor/bin/php-cs-fixer fix --dry-run --format=checkstyle | cs2pr |