From: Simon Ruderich Date: Fri, 9 Apr 2021 05:27:51 +0000 (+0200) Subject: Makefile: add test target X-Git-Url: https://ruderich.org/simon/gitweb/?p=safcm%2Fsafcm.git;a=commitdiff_plain;h=0b1c52758ea780b5666a708d1977716b1387fc8e Makefile: add test target --- diff --git a/Makefile b/Makefile index ddde397..152ec8a 100644 --- a/Makefile +++ b/Makefile @@ -13,8 +13,12 @@ safcm: @# For proper permissions after initial clone with a strict umask cd cmd/safcm/testdata/project && ../../../../safcm fixperms 2> /dev/null +test: + go vet ./... + go test -race ./... + clean: rm -rf remote/helpers/ rm -f safcm -.PHONY: all clean safcm +.PHONY: all test clean safcm diff --git a/ci/run b/ci/run index e9cf0ff..01ee682 100755 --- a/ci/run +++ b/ci/run @@ -8,8 +8,7 @@ PATH=$HOME/go/bin:$PATH export PATH make -go vet ./... -go test -race ./... +make test # Additional static checks only run in CI go get honnef.co/go/tools/cmd/staticcheck