Skip to content

Commit

Permalink
chore: improve makefile
Browse files Browse the repository at this point in the history
  • Loading branch information
bschaatsbergen committed Mar 12, 2024
1 parent 6ef6f99 commit e54a54b
Showing 1 changed file with 24 additions and 4 deletions.
28 changes: 24 additions & 4 deletions GNUmakefile
Original file line number Diff line number Diff line change
@@ -1,6 +1,26 @@
default: testacc
default: build

build:
go build -v ./...

install: build
go install -v ./...

# See https://golangci-lint.run/
lint:
golangci-lint run

# Generate docs and copywrite headers
generate:
cd tools; go generate ./...

fmt:
gofmt -s -w -e .

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

# Run acceptance tests
.PHONY: testacc
testacc:
TF_ACC=1 go test ./... -v $(TESTARGS) -timeout 120m
TF_ACC=1 go test -v -cover -timeout 120m ./...

.PHONY: build install lint generate fmt test testacc

0 comments on commit e54a54b

Please sign in to comment.