aboutsummaryrefslogtreecommitdiff
path: root/composer.json
diff options
context:
space:
mode:
authorGravatar Alexandre Alapetite <alexandre@alapetite.fr> 2021-10-24 17:25:41 +0200
committerGravatar GitHub <noreply@github.com> 2021-10-24 17:25:41 +0200
commit9416f45dd9178039f8ce0e5a7d7328922d2d7695 (patch)
treeb96e637953fab571ed55d7ea275a14fcf1855c88 /composer.json
parent07e00c7681e5fd9e680cba75125b166b96a96198 (diff)
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)
Diffstat (limited to 'composer.json')
-rw-r--r--composer.json8
1 files changed, 7 insertions, 1 deletions
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"
]
}