diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 4782e18..b7bc22c 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -53,6 +53,7 @@ jobs: command: - "ts:lint" - "php:sniff" + - "php:codestyle" php-version: - 7.3 xliff-lint: diff --git a/composer.json b/composer.json index 55ad670..adfb5a1 100644 --- a/composer.json +++ b/composer.json @@ -64,6 +64,7 @@ }, "scripts": { "ci:php:lint": "find *.php Classes Configuration Tests -name '*.php' -print0 | xargs -0 -n 1 -P 4 php -l", + "ci:php:codestyle": "php-cs-fixer fix --config .php_cs.dist -v --dry-run --using-cache false --diff --diff-format=udiff", "ci:php:sniff": ".Build/vendor/bin/phpcs Classes Tests", "ci:ts:lint": ".Build/vendor/bin/typoscript-lint -c Configuration/TsLint.yml --ansi -n --fail-on-warnings -vvv Configuration/TypoScript", "ci:tests:unit": ".Build/vendor/bin/phpunit -c .Build/vendor/nimut/testing-framework/res/Configuration/UnitTests.xml Tests/Unit",