Skip to content

Commit

Permalink
Add make lint and make test (#425)
Browse files Browse the repository at this point in the history
  • Loading branch information
patrickhoefler authored Nov 14, 2023
1 parent 38a651f commit 1c7aef9
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit 1c7aef9

Please sign in to comment.