From 1c7aef9201141b8ebb1a256339f59cb0834ac56a Mon Sep 17 00:00:00 2001 From: Patrick Hoefler Date: Tue, 14 Nov 2023 17:32:08 +0100 Subject: [PATCH] Add `make lint` and `make test` (#425) --- Makefile | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/Makefile b/Makefile index 61bef5a..4e80975 100644 --- a/Makefile +++ b/Makefile @@ -26,3 +26,12 @@ example-images: go run . -f examples/dockerfiles/Dockerfile.large -c -n 0.3 -o svg -u 4 \ && mv Dockerfile.svg examples/images/Dockerfile-large.svg + +lint: + # https://github.com/golangci/golangci-lint needs to be installed. + golangci-lint run + +test: + go test ./... --coverprofile=cover.out + go install github.com/patrickhoefler/gocovergate@latest + gocovergate