mirror of https://github.com/FriendsOfTYPO3/tea.git synced 2024-11-21 20:36:12 +01:00

[FEATURE] Use parallel-lint for command ci:php:lint (#1378)

Fixes: #1139
This commit is contained in:
Eike Starkmann 2024-07-30 20:17:05 +02:00 committed by GitHub
parent cd6df41eb7
commit 880f995047
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 10 additions and 1 deletions

View file

@ -25,6 +25,14 @@ jobs:
ini-file: development
coverage: none
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"
run: "composer config --global --list"
- name: "Run PHP lint"

View file

@ -52,6 +52,7 @@
"helmich/typo3-typoscript-lint": "^3.1.1",
"icanhazstring/composer-unused": "^0.8.11",
"php-coveralls/php-coveralls": "^2.7.0",
"php-parallel-lint/php-parallel-lint": "^1.4",
"phpstan/extension-installer": "^1.4.1",
"phpstan/phpstan": "^1.11.8",
"phpstan/phpstan-phpunit": "^1.4.0",
@ -144,7 +145,7 @@
"@ci:php:stan"
],
"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:stan": "phpstan --no-progress",
"ci:static": [