diff --git a/.github/workflows/test.yaml b/.github/workflows/test.yaml index 7fba207..b2d7046 100644 --- a/.github/workflows/test.yaml +++ b/.github/workflows/test.yaml @@ -31,11 +31,13 @@ jobs: key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }} restore-keys: | ${{ runner.os }}-go- + - name: Dependencies + run: make dependencies - name: Build run: make build - name: Test run: make test - - name: Test + - name: lint-fix run: make lint-fix - name: Lint run: make lint diff --git a/Makefile b/Makefile index 4148301..73558d0 100644 --- a/Makefile +++ b/Makefile @@ -196,6 +196,10 @@ golangci-lint: $(GOLANGCI_LINT) ## Download golangci-lint locally if necessary. $(GOLANGCI_LINT): $(LOCALBIN) $(call go-install-tool,$(GOLANGCI_LINT),github.com/golangci/golangci-lint/cmd/golangci-lint,$(GOLANGCI_LINT_VERSION)) +.PHONY: dependencies +dependencies: + @./scripts/dependencies.sh + # go-install-tool will 'go install' any package with custom target and name of binary, if it doesn't exist # $1 - target path with name of binary # $2 - package url which can be installed