Skip to content

Commit

Permalink
Adding lint, fmt and test to makefile
Browse files Browse the repository at this point in the history
Just shortcuts for go commands
  • Loading branch information
Ivan De Marino committed Jul 15, 2022
1 parent 77830f8 commit 492f8dc
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion Makefile
Expand Up @@ -40,4 +40,13 @@ website/build-local:
@docker build https://github.com/hashicorp/terraform-website.git\#$(WEBSITE_BRANCH) \
-t $(WEBSITE_DOCKER_IMAGE_LOCAL)

.PHONY: website website/local website/build-local
lint:
golangci-lint run

fmt:
gofmt -s -w -e .

test:
go test -v -cover -timeout=120s -parallel=4 ./...

.PHONY: lint fmt test website website/local website/build-local

0 comments on commit 492f8dc

Please sign in to comment.