Skip to content

Commit

Permalink
php-cs-fixer: utilize multiple processors (#4674)
Browse files Browse the repository at this point in the history
  • Loading branch information
staabm committed May 13, 2021
1 parent 3ea82ca commit b3385ac
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion .github/workflows/code-style.yml
Expand Up @@ -39,7 +39,7 @@ jobs:

- name: Fix code style
if: env.writable == 1
run: vendor/bin/php-cs-fixer fix --diff
run: vendor/bin/php-cs-fixer list-files --config=.php-cs-fixer.dist.php | xargs -n 250 -P 3 vendor/bin/php-cs-fixer fix --diff --config=.php-cs-fixer.dist.php

- name: Commit changed files
uses: stefanzweifel/git-auto-commit-action@v4
Expand All @@ -50,6 +50,7 @@ jobs:
commit_user_email: rex-bot@users.noreply.github.com

- name: Check code style
if: env.writable == 0
run: vendor/bin/php-cs-fixer fix --ansi --diff --dry-run --format=checkstyle | cs2pr # check whether there are still errors left

rector:
Expand Down

0 comments on commit b3385ac

Please sign in to comment.