diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index b0d7227be4..ba9c151104 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -15,15 +15,9 @@ Please see https://git.k8s.io/community/CLA.md for more info. ## How to build kubebuilder locally -1. Build -```sh -$ make build -``` - -1. Test -```sh -$ ./test.sh -``` +1. Ensure you activate module support before continue (`$ export GO111MODULE=on`) +1. Build the project by using the command `make build` +1. Run the tests by using the command `make test` and `make test-project-generation` ## Community, discussion and support diff --git a/Makefile b/Makefile index dddaa45e39..4c11a0acfc 100644 --- a/Makefile +++ b/Makefile @@ -31,6 +31,14 @@ install: build generate: GO111MODULE=on ./generated_golden.sh +.PHONY: test test: go test -v ./cmd/... ./pkg/... +.PHONY: test-project-generation +test-project-generation: + ./test.sh + +.PHONY: test-e2e +test-e2e: + ./test_e2e.sh \ No newline at end of file