Fork of github.com/did-method-plc/did-method-plc
1
2SHELL = /bin/bash
3.SHELLFLAGS = -o pipefail -c
4
5.PHONY: help
6help: ## Print info about all commands
7 @echo "Commands:"
8 @echo
9 @grep -E '^[a-zA-Z0-9_-]+:.*?## .*$$' $(MAKEFILE_LIST) | awk 'BEGIN {FS = ":.*?## "}; {printf " \033[01;32m%-20s\033[0m %s\n", $$1, $$2}'
10
11#.PHONY: build
12#build: ## Build all executables
13# go build ./...
14
15.PHONY: test
16test: ## Run all tests
17 go test ./...
18
19.PHONY: coverage-html
20coverage-html: ## Generate test coverage report and open in browser
21 go test ./... -coverpkg=./... -coverprofile=test-coverage.out
22 go tool cover -html=test-coverage.out
23
24.PHONY: lint
25lint: ## Verify code style and run static checks
26 go vet ./...
27 test -z $(gofmt -l ./...)
28
29.PHONY: fmt
30fmt: ## Run syntax re-formatting (modify in place)
31 go fmt ./...
32
33.PHONY: check
34check: ## Compile everything, checking syntax (does not output binaries)
35 go build ./...