From 9416f45dd9178039f8ce0e5a7d7328922d2d7695 Mon Sep 17 00:00:00 2001 From: Alexandre Alapetite Date: Sun, 24 Oct 2021 17:25:41 +0200 Subject: GitHub Actions CI optimisation (#3929) Efforts to reduce the resources used by CI: * Only one git checkout * Exclusion of irrelevant directories for several commands * Fix some rtlcss warnings * Move some commands from tests.yml to composer.json to make them reusasble * Initial efforts to take avantage of all that from `make` (help welcome) --- composer.json | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'composer.json') diff --git a/composer.json b/composer.json index c39915caf..5590b24cf 100644 --- a/composer.json +++ b/composer.json @@ -24,14 +24,20 @@ "squizlabs/php_codesniffer": "^3.6" }, "scripts": { - "phpcs": "phpcs . -p -s", + "php-lint": "find . -type d -name 'vendor' -prune -o -name '*.php' -print0 | xargs -0 -n1 -P4 php -l 1>/dev/null", + "phtml-lint": "find . -type d -name 'vendor' -prune -o -name '*.phtml' -print0 | xargs -0 -n1 -P4 php -l 1>/dev/null", + "phpcs": "phpcs . -s", "phpcbf": "phpcbf . -p -s", "phpunit": "phpunit --bootstrap ./tests/bootstrap.php --verbose ./tests", + "translations": "cli/manipulate.translation.php -a format", "test": [ + "@php-lint", + "@phtml-lint", "@phpunit", "@phpcs" ], "fix": [ + "@translations", "@phpcbf" ] } -- cgit v1.2.3