From 4343ea94ad373b0752effc9557083a6132bafd4f Mon Sep 17 00:00:00 2001 From: randytqwjp Date: Wed, 23 Oct 2024 17:58:59 +0900 Subject: [PATCH] add make dependencies --- .github/workflows/test.yaml | 4 +++- Makefile | 4 ++++ 2 files changed, 7 insertions(+), 1 deletion(-) 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