Skip to content

Commit 2e49ed1

Browse files
committed
Fix linter issue
golangci/golangci-lint-action#434 Signed-off-by: Hasan Turken <[email protected]>
1 parent b46ca72 commit 2e49ed1

File tree

1 file changed

+8
-5
lines changed

1 file changed

+8
-5
lines changed

.github/workflows/ci.yml

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,11 @@ jobs:
4646
with:
4747
submodules: true
4848

49+
- name: Setup Go
50+
uses: actions/setup-go@v2
51+
with:
52+
go-version: ${{ env.GO_VERSION }}
53+
4954
- name: Find the Go Build Cache
5055
id: go
5156
run: echo "::set-output name=cache::$(make go.cachedir)"
@@ -67,12 +72,10 @@ jobs:
6772
- name: Vendor Dependencies
6873
run: make vendor vendor.check
6974

70-
# This action uses its own setup-go, which always seems to use the latest
71-
# stable version of Go. We could run 'make lint' to ensure our desired Go
72-
# version, but we prefer this action because it leaves 'annotations' (i.e.
73-
# it comments on PRs to point out linter violations).
75+
# We could run 'make lint' but we prefer this action because it leaves
76+
# 'annotations' (i.e. it comments on PRs to point out linter violations).
7477
- name: Lint
75-
uses: golangci/golangci-lint-action@v2
78+
uses: golangci/golangci-lint-action@v3
7679
with:
7780
version: ${{ env.GOLANGCI_VERSION }}
7881

0 commit comments

Comments
 (0)