Skip to content

Commit

Permalink
build: add coverage reporting
Browse files Browse the repository at this point in the history
  • Loading branch information
gabor-boros committed Oct 13, 2021
1 parent 7da72a9 commit 5911595
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions Makefile
@@ -1,4 +1,4 @@
.PHONY: help prerequisites deps format lint test build release changelog docs clean
.PHONY: help prerequisites deps format lint test coverage-report build release changelog docs clean
.DEFAULT_GOAL := build

BIN_NAME := minutes
Expand All @@ -17,15 +17,18 @@ deps: ## Download dependencies
go mod download
go mod tidy

format: deps ## Run formatter on the project
format: ## Run formatter on the project
goreturns -b -local -p -w -e -l .

lint: format ## Run linters on the project
golangci-lint run --timeout 5m -E golint -e '(struct field|type|method|func) [a-zA-Z`]+ should be [a-zA-Z`]+'
gosec -quiet ./...

test: deps ## Run tests
go test ./...
go test -vet "" -cover -coverprofile .coverage.out ./...

coverage-report: ## Generate coverage report from previous test run
go tool cover -html .coverage.out -o coverage.html

build: deps ## Build binary
goreleaser build --rm-dist --snapshot --single-target
Expand Down

0 comments on commit 5911595

Please sign in to comment.