mirror of
https://github.com/FriendsOfTYPO3/tea.git
synced 2024-11-22 07:16:14 +01:00
[FEATURE] Use parallel-lint for command ci:php:lint (#1378)
Fixes: #1139
This commit is contained in:
parent
cd6df41eb7
commit
880f995047
2 changed files with 10 additions and 1 deletions
8
.github/workflows/ci.yml
vendored
8
.github/workflows/ci.yml
vendored
|
@ -25,6 +25,14 @@ jobs:
|
||||||
ini-file: development
|
ini-file: development
|
||||||
coverage: none
|
coverage: none
|
||||||
tools: composer:v2
|
tools: composer:v2
|
||||||
|
- name: "Cache dependencies installed with composer"
|
||||||
|
uses: actions/cache@v4
|
||||||
|
with:
|
||||||
|
key: "php${{ matrix.php-version }}-composer-${{ hashFiles('**/composer.json') }}"
|
||||||
|
path: ~/.cache/composer
|
||||||
|
restore-keys: "php${{ matrix.php-version }}-composer-\n"
|
||||||
|
- name: "Install Composer dependencies"
|
||||||
|
run: "composer update --no-progress"
|
||||||
- name: "Show the Composer configuration"
|
- name: "Show the Composer configuration"
|
||||||
run: "composer config --global --list"
|
run: "composer config --global --list"
|
||||||
- name: "Run PHP lint"
|
- name: "Run PHP lint"
|
||||||
|
|
|
@ -52,6 +52,7 @@
|
||||||
"helmich/typo3-typoscript-lint": "^3.1.1",
|
"helmich/typo3-typoscript-lint": "^3.1.1",
|
||||||
"icanhazstring/composer-unused": "^0.8.11",
|
"icanhazstring/composer-unused": "^0.8.11",
|
||||||
"php-coveralls/php-coveralls": "^2.7.0",
|
"php-coveralls/php-coveralls": "^2.7.0",
|
||||||
|
"php-parallel-lint/php-parallel-lint": "^1.4",
|
||||||
"phpstan/extension-installer": "^1.4.1",
|
"phpstan/extension-installer": "^1.4.1",
|
||||||
"phpstan/phpstan": "^1.11.8",
|
"phpstan/phpstan": "^1.11.8",
|
||||||
"phpstan/phpstan-phpunit": "^1.4.0",
|
"phpstan/phpstan-phpunit": "^1.4.0",
|
||||||
|
@ -144,7 +145,7 @@
|
||||||
"@ci:php:stan"
|
"@ci:php:stan"
|
||||||
],
|
],
|
||||||
"ci:php:cs-fixer": "php-cs-fixer fix --config .php-cs-fixer.php -v --dry-run --diff",
|
"ci:php:cs-fixer": "php-cs-fixer fix --config .php-cs-fixer.php -v --dry-run --diff",
|
||||||
"ci:php:lint": "find .*.php *.php Classes Configuration Tests -name '*.php' -print0 | xargs -r -0 -n 1 -P 4 php -l",
|
"ci:php:lint": "parallel-lint .*.php *.php Classes Configuration Tests",
|
||||||
"ci:php:sniff": "phpcs Classes Configuration Tests",
|
"ci:php:sniff": "phpcs Classes Configuration Tests",
|
||||||
"ci:php:stan": "phpstan --no-progress",
|
"ci:php:stan": "phpstan --no-progress",
|
||||||
"ci:static": [
|
"ci:static": [
|
||||||
|
|
Loading…
Reference in a new issue