From f326c3ebbe367892e6371a65d29047f093401dff Mon Sep 17 00:00:00 2001 From: Dmitrii Stepanov Date: Mon, 29 May 2023 12:12:40 +0300 Subject: [PATCH] [#2] platform: Add makefile Signed-off-by: Dmitrii Stepanov --- Makefile | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 Makefile diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..87e1038 --- /dev/null +++ b/Makefile @@ -0,0 +1,13 @@ +#!/usr/bin/make -f +SHELL = bash + +# Run Unit Test with go test +test: + @go work edit -json | jq -r '.Use[].DiskPath' | xargs -I{} go test {}/... -count=1 + +# Run linters +lint: + @go work edit -json | jq -r '.Use[].DiskPath' | xargs -I{} golangci-lint --timeout=5m run {}/... + +staticcheck: + @@go work edit -json | jq -r '.Use[].DiskPath' | xargs -I{} staticcheck {}/... \ No newline at end of file