From a774ba55807f711f56dcae18bbeed3b2302b48fd Mon Sep 17 00:00:00 2001 From: chenk Date: Sat, 19 Mar 2022 11:59:17 +0200 Subject: [PATCH] chore: generate mocks Signed-off-by: chenk --- .github/workflows/lint.yml | 2 +- Makefile | 1 + scripts/lint.sh | 1 + 3 files changed, 3 insertions(+), 1 deletion(-) diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml index f3bf0e8..4cebfbb 100644 --- a/.github/workflows/lint.yml +++ b/.github/workflows/lint.yml @@ -18,5 +18,5 @@ jobs: with: go-version: 1.17 - - name: Lint tests + - name: Lint check run: make lint diff --git a/Makefile b/Makefile index fc3b456..948f961 100644 --- a/Makefile +++ b/Makefile @@ -19,6 +19,7 @@ lint: $(GOCMD) install -v github.com/golang/mock/mockgen export PATH=$HOME/go/bin:$PATH $(GOMOCKS) + ./scripts/lint.sh tidy: $(GOMOD) tidy -v test: diff --git a/scripts/lint.sh b/scripts/lint.sh index 6062e82..636cfcd 100755 --- a/scripts/lint.sh +++ b/scripts/lint.sh @@ -1,2 +1,3 @@ #!/usr/bin/env bash +curl -sSfL https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh | sh -s -- -b $(go env GOPATH)/bin v1.27.0 golangci-lint run -v > lint.xml \ No newline at end of file