rollup static analysis to make target

This commit is contained in:
Alex Goodman 2020-07-25 16:41:59 -04:00
parent ff5e31f437
commit 0faf81320d
No known key found for this signature in database
GPG key ID: 86E2870463D5E890
2 changed files with 6 additions and 4 deletions

View file

@ -32,7 +32,7 @@ jobs:
- run: - run:
name: run static analysis name: run static analysis
command: make lint command: make static-analysis
run-tests: run-tests:
parameters: parameters:

View file

@ -46,9 +46,8 @@ define title
@printf '$(TITLE)$(1)$(RESET)\n' @printf '$(TITLE)$(1)$(RESET)\n'
endef endef
.PHONY: all bootstrap lint lint-fix unit coverage integration check-pipeline clear-cache help test .PHONY: all
all: clean static-analysis test ## Run all checks (linting, license check, unit, integration, and linux acceptance tests tests)
all: clean lint check-licenses test ## Run all checks (linting, license check, unit, integration, and linux acceptance tests tests)
@printf '$(SUCCESS)All checks pass!$(RESET)\n' @printf '$(SUCCESS)All checks pass!$(RESET)\n'
.PHONY: compare .PHONY: compare
@ -78,6 +77,9 @@ bootstrap: ## Download and install all go dependencies (+ prep tooling in the ./
[ -f "$(TEMPDIR)/bouncer" ] || curl -sSfL https://raw.githubusercontent.com/wagoodman/go-bouncer/master/bouncer.sh | sh -s -- -b $(TEMPDIR)/ v0.1.0 [ -f "$(TEMPDIR)/bouncer" ] || curl -sSfL https://raw.githubusercontent.com/wagoodman/go-bouncer/master/bouncer.sh | sh -s -- -b $(TEMPDIR)/ v0.1.0
[ -f "$(TEMPDIR)/goreleaser" ] || curl -sfL https://install.goreleaser.com/github.com/goreleaser/goreleaser.sh | sh -s -- -b $(TEMPDIR)/ v0.140.0 [ -f "$(TEMPDIR)/goreleaser" ] || curl -sfL https://install.goreleaser.com/github.com/goreleaser/goreleaser.sh | sh -s -- -b $(TEMPDIR)/ v0.140.0
.PHONY: static-analysis
static-analysis: lint check-licenses
.PHONY: lint .PHONY: lint
lint: ## Run gofmt + golangci lint checks lint: ## Run gofmt + golangci lint checks
$(call title,Running linters) $(call title,Running linters)