Skip to content

Commit

Permalink
ci: add boostrap commands to makefile
Browse files Browse the repository at this point in the history
Signed-off-by: Bradley Jones <[email protected]>
  • Loading branch information
bradleyjones committed Sep 5, 2023
1 parent 3967524 commit 88ce53f
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -34,13 +34,21 @@ all: test build
$(TEMPDIR):
mkdir -p $(TEMPDIR)

.PHONY: bootstrap-go
bootstrap-go:
$(call title,Boostrapping dependencies)
go mod download

.PHONY: bootstrap-tools
bootstrap-tools: $(TEMPDIR) $(RESULTSDIR)
$(call title,Boostrapping tools)
curl -sSfL https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh | sh -s -- -b $(TEMPDIR)/ $(GOLANG_CI_VERSION)
GOBIN="$(realpath $(TEMPDIR))" go install github.com/rinchsan/gosimports/cmd/gosimports@$(GOSIMPORTS_VERSION)
GOBIN="$(realpath $(TEMPDIR))" go install github.com/goreleaser/goreleaser@$(GORELEASER_VERSION)

.PHONY: bootstrap
bootstrap: bootstrap-go bootstrap-tools ## Download and install all go dependencies (+ prep tooling in the ./tmp dir)

.PHONY: static-analysis
static-analysis: lint
# Placeholder for future static analysis checks (this make target is used by CI)
Expand Down

0 comments on commit 88ce53f

Please sign in to comment.