Skip to content

Commit

Permalink
#146 Add make-dependencies target
Browse files Browse the repository at this point in the history
  • Loading branch information
docktermj committed May 29, 2024
1 parent 1082745 commit 8c1cc5f
Showing 1 changed file with 8 additions and 6 deletions.
14 changes: 8 additions & 6 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,13 @@ hello-world: hello-world-osarch-specific
# Dependency management
# -----------------------------------------------------------------------------

.PHONY: make-dependencies
make-dependencies:
@go install github.com/vladopajic/go-test-coverage/v2@latest
@curl -sSfL https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh | sh -s -- -b $(go env GOPATH)/bin v1.58.1
golangci-lint --version


.PHONY: dependencies
dependencies:
@go get -u ./...
Expand Down Expand Up @@ -123,17 +130,12 @@ test: test-osarch-specific
# Coverage
# -----------------------------------------------------------------------------

.PHONY: install-go-test-coverage
install-go-test-coverage:
go install github.com/vladopajic/go-test-coverage/v2@latest


.PHONY: coverage
coverage: coverage-osarch-specific


.PHONY: check-coverage
check-coverage: install-go-test-coverage
check-coverage:
go test ./... -coverprofile=./cover.out -covermode=atomic -coverpkg=./...
${GOBIN}/go-test-coverage --config=./.testcoverage.yml

Expand Down

0 comments on commit 8c1cc5f

Please sign in to comment.