generated from TrueCloudLab/basic
[#2] platform: Add makefile
Signed-off-by: Dmitrii Stepanov <d.stepanov@yadro.com>
This commit is contained in:
parent
43f353f228
commit
f326c3ebbe
1 changed files with 13 additions and 0 deletions
13
Makefile
Normal file
13
Makefile
Normal file
|
@ -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 {}/...
|
Loading…
Reference in a new issue