scorecard/Makefile
naveen a56f707350 Feat - Implemented Makefile and actions for PR
Implemented Makefile and actions for PR and push to validate fmt, go mod
tidy , go build and go test
2020-12-22 16:51:24 -05:00

23 lines
455 B
Makefile

build:
go build
fmt:
go fmt ./...
test:
go test -covermode atomic -coverprofile=profile.out ./...
tidy:
go mod tidy
GOLANGCI_LINT = $(shell pwd)/bin/golangci-lint
golangci-lint:
@[ -f $(GOLANGCI_LINT) ] || { \
set -e ;\
curl -sSfL https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh | sh -s -- -b $(shell dirname $(GOLANGCI_LINT)) v1.29.0 ;\
}
lint: golangci-lint ## Run golangci-lint linter
$(GOLANGCI_LINT) run