Skip to content

Commit cdc4367

Browse files
committed
run golangci-lint just once
Signed-off-by: sivchari <[email protected]>
1 parent 23467d8 commit cdc4367

File tree

3 files changed

+4
-6
lines changed

3 files changed

+4
-6
lines changed

.github/workflows/pr-golangci-lint.yaml

+2-5
Original file line numberDiff line numberDiff line change
@@ -27,10 +27,7 @@ jobs:
2727
uses: actions/setup-go@f111f3307d8850f501ac008e886eec1fd1932a34 # tag=v5.3.0
2828
with:
2929
go-version: ${{ steps.vars.outputs.go_version }}
30-
- name: golangci-lint
31-
uses: golangci/golangci-lint-action@1481404843c368bc19ca9406f87d6e0fc97bdcfd # tag=v7.0.0
32-
with:
33-
version: v2.0.2
34-
working-directory: ${{matrix.working-directory}}
30+
- name: Lint Codebase
31+
run: make lint
3532
- name: Lint API
3633
run: make lint-api

Makefile

+1-1
Original file line numberDiff line numberDiff line change
@@ -160,7 +160,7 @@ GINKGO := $(abspath $(TOOLS_BIN_DIR)/$(GINKGO_BIN)-$(GINKGO_VER))
160160
GINKGO_PKG := github.com/onsi/ginkgo/v2/ginkgo
161161

162162
GOLANGCI_LINT_BIN := golangci-lint
163-
GOLANGCI_LINT_VER := $(shell cat .github/workflows/pr-golangci-lint.yaml | grep [[:space:]]version: | sed 's/.*version: //')
163+
GOLANGCI_LINT_VER := v2.0.2
164164
GOLANGCI_LINT := $(abspath $(TOOLS_BIN_DIR)/$(GOLANGCI_LINT_BIN)-$(GOLANGCI_LINT_VER))
165165
GOLANGCI_LINT_PKG := github.com/golangci/golangci-lint/v2/cmd/golangci-lint
166166

scripts/go_install.sh

+1
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@ if [ -z "${2}" ]; then
2727
exit 1
2828
fi
2929

30+
echo "${3}"
3031
if [ -z "${3}" ]; then
3132
echo "must provide version as third parameter"
3233
exit 1

0 commit comments

Comments
 (0)