From c272a5d2d8ae46a333dd955a1431e4d4b84201e4 Mon Sep 17 00:00:00 2001 From: n-peugnet Date: Fri, 17 Apr 2020 18:37:41 +0200 Subject: tests: add check to release target + readme info --- Makefile | 2 +- README.md | 17 +++++++++++++++++ 2 files changed, 18 insertions(+), 1 deletion(-) 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 --------------------- -- cgit v1.2.3