aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorn-peugnet <n.peugnet@free.fr>2020-04-17 18:37:41 +0200
committerVincent Peugnet <33429034+vincent-peugnet@users.noreply.github.com>2020-04-17 19:03:34 +0200
commitc272a5d2d8ae46a333dd955a1431e4d4b84201e4 (patch)
tree3883f54b962d754737472e433e78ecb13aafe335
parent8b3eff62eeeac68b7ffa3add6db88df1d5e82371 (diff)
downloadwcms-c272a5d2d8ae46a333dd955a1431e4d4b84201e4.tar.gz
wcms-c272a5d2d8ae46a333dd955a1431e4d4b84201e4.zip
tests: add check to release target + readme info
-rw-r--r--Makefile2
-rw-r--r--README.md17
2 files changed, 18 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index 5bfd51c..36faed3 100644
--- a/Makefile
+++ b/Makefile
@@ -44,7 +44,7 @@ watch:
# Create a new release and upload it on GitHub.
.PHONY: release
-release: node_modules
+release: check node_modules
release-it
# Inform Sentry of a new release.
diff --git a/README.md b/README.md
index fec1bab..c0da5fa 100644
--- a/README.md
+++ b/README.md
@@ -138,6 +138,23 @@ While developing the JS sources it is useful to run webpack in watch mode so tha
make watch
+Run checks
+---------
+
+Multiple tools are used to perform checks on the source code:
+
+- **phpcs** to lint PHP code
+
+ make lint
+
+- **phpunit** to run unit test on PHP code
+
+ make test
+
+All checks can be run with a single command
+
+ make check [--keep-going]
+
Publish a new release
---------------------