Skip to content

Commit

Permalink
add go mod verification to Makefile
Browse files Browse the repository at this point in the history
  • Loading branch information
Yusuf Kanchwala committed Jul 24, 2020
1 parent 926b553 commit 6fa60dd
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
GITCOMMIT := $(shell git rev-parse --short HEAD 2>/dev/null)
BUILD_FLAGS := -v -ldflags "-w -s"

BUILD_DIR = build
BUILD_DIR = bin
BINARY_NAME = terrascan


Expand All @@ -22,7 +22,7 @@ clean:


# run all validation tests
validate: gofmt govet golint
validate: gofmt govet golint gomodverify


# gofmt validation
Expand All @@ -39,3 +39,8 @@ golint:
# govet validation
govet:
./scripts/validate-govet.sh


# go mod validation
gomodverify:
go mod verify

0 comments on commit 6fa60dd

Please sign in to comment.