From 0b1c52758ea780b5666a708d1977716b1387fc8e Mon Sep 17 00:00:00 2001 From: Simon Ruderich Date: Fri, 9 Apr 2021 07:27:51 +0200 Subject: [PATCH] Makefile: add test target --- Makefile | 6 +++++- ci/run | 3 +-- 2 files changed, 6 insertions(+), 3 deletions(-) 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 -- 2.45.2