From b3385ac922f8d7c9c6fc33ddd02d22aabf8fba8a Mon Sep 17 00:00:00 2001 From: Markus Staab Date: Thu, 13 May 2021 15:51:26 +0200 Subject: [PATCH] php-cs-fixer: utilize multiple processors (#4674) --- .github/workflows/code-style.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/code-style.yml b/.github/workflows/code-style.yml index 591923edad..7149d56322 100644 --- a/.github/workflows/code-style.yml +++ b/.github/workflows/code-style.yml @@ -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 @@ -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: