Skip to content

Commit

Permalink
chore: update makefile (#100)
Browse files Browse the repository at this point in the history
  • Loading branch information
nrwiersma authored Oct 31, 2023
1 parent 4742266 commit 9247320
Showing 1 changed file with 22 additions and 5 deletions.
27 changes: 22 additions & 5 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,6 +1,23 @@
include github.com/hamba/make/golang
# Format all files
fmt:
@echo "==> Formatting source"
@gofmt -s -w $(shell find . -type f -name '*.go' -not -path "./vendor/*")
@echo "==> Done"
.PHONY: fmt

# Run benchmarks
bench:
@go test -bench . ./...
.PHONY: bench
# Tidy the go.mod file
tidy:
@echo "==> Cleaning go.mod"
@go mod tidy
@echo "==> Done"
.PHONY: tidy

# Run all tests
test:
@go test -cover -race ./...
.PHONY: test

# Lint the project
lint:
@golangci-lint run ./...
.PHONY: lint

0 comments on commit 9247320

Please sign in to comment.