diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..33e56dc --- /dev/null +++ b/Makefile @@ -0,0 +1,14 @@ +.PHONY: all deps test build + +all: deps test build + +deps: + @go mod vendor + @go mod tidy + +test: + @go vet ./{internal,resources}/... + @go test -v -race -cover ./{cmd,handler}/... + +install: + @go install . diff --git a/README.md b/README.md index 34a1399..2d937bd 100644 --- a/README.md +++ b/README.md @@ -90,3 +90,9 @@ where *8888* is a port to listen on. /missions/{mission-id} # get mission by it's id /explorers/{explorer-address} # get missions joined by explorer address ``` + +#### Running tests +From the root of the project, run +```sh +make test +``` diff --git a/tests/.gitkeep b/tests/.gitkeep new file mode 100644 index 0000000..e69de29