Skip to content

Commit

Permalink
chore(makefile): add lint, test, & benchmark commands.
Browse files Browse the repository at this point in the history
  • Loading branch information
00x-dx committed Jan 24, 2024
1 parent ad044a7 commit 0df7524
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -12,3 +12,21 @@ proto-lint:
@echo "--> Linting Protobuf files"
@$(DOCKER_BUF) lint
.PHONY: proto-lint

## lint: Lint source code. Requires golangci-lint.
lint:
@echo "--> Lint source code using golangci-lint"
@golangci-lint run
.PHONY: lint

## test: Run unit tests.
test:
@echo "--> Run unit tests"
@go test -mod=readonly ./...
.PHONY: test

## benchmark: Perform benchmark.
benchmark:
@echo "--> Perform benchmark"
@ go test -mod=readonly -bench=. ./...
.PHONY: benchmark

0 comments on commit 0df7524

Please sign in to comment.