aboutsummaryrefslogtreecommitdiff
path: root/Makefile
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 /Makefile
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 'Makefile')
-rw-r--r--Makefile33
1 files changed, 32 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index 72352ff42..adf30cad1 100644
--- a/Makefile
+++ b/Makefile
@@ -159,7 +159,7 @@ endif
###########
.PHONY: rtl
rtl: ## Generate RTL CSS files
- rtlcss -d p/themes && find . -type f -name '*.rtl.rtl.css' -delete
+ rtlcss -d p/themes/ && find p/themes/ -type f -name '*.rtl.rtl.css' -delete
.PHONY: pot
pot: ## Generate POT templates for docs
@@ -169,6 +169,37 @@ pot: ## Generate POT templates for docs
refresh: ## Refresh feeds by fetching new messages
@$(PHP) ./app/actualize_script.php
+###############################
+## New commands aligned on CI #
+## Work in progress #
+###############################
+
+# TODO: Add composer install
+.PHONY: composer-test
+composer-test:
+ composer run-script test
+
+.PHONY: composer-fix
+composer-fix:
+ composer run-script fix
+
+# TODO: Add npm install
+.PHONY: npm-test
+npm-test:
+ npm test
+
+.PHONY: npm-fix
+npm-fix:
+ npm run fix
+
+# TODO: Add shellcheck, shfmt, hadolint
+.PHONY: test-all
+test-all: composer-test npm-test
+
+.PHONY: fix-all
+fix-all: composer-fix npm-fix
+
+
##########
## HELP ##
##########