Skip to content

Commit d5892b8

Browse files
authored
fix: build/lint is broken due to dependencies changes (#85)
Signed-off-by: Ravi Hari <[email protected]>
1 parent ac18ca1 commit d5892b8

File tree

1 file changed

+13
-5
lines changed

1 file changed

+13
-5
lines changed

.github/workflows/ci.yaml

Lines changed: 13 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -9,17 +9,25 @@ on:
99
branches:
1010
- 'master'
1111

12+
env:
13+
# Golang version to use across CI steps
14+
GOLANG_VERSION: '1.17'
15+
1216
jobs:
1317
lint-go:
1418
name: Lint Go code
1519
runs-on: ubuntu-latest
1620
steps:
21+
- name: Set up Go
22+
uses: actions/setup-go@v3
23+
with:
24+
go-version: ${{ env.GOLANG_VERSION }}
1725
- name: Checkout code
18-
uses: actions/checkout@v2
26+
uses: actions/checkout@v3
1927
- name: Run golangci-lint
20-
uses: golangci/golangci-lint-action@v2
28+
uses: golangci/golangci-lint-action@v3
2129
with:
22-
version: v1.38.0
30+
version: v1.45.2
2331
args: --timeout 5m
2432
test:
2533
runs-on: ubuntu-latest
@@ -31,9 +39,9 @@ jobs:
3139
key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }}
3240
restore-keys: |
3341
${{ runner.os }}-go-
34-
- uses: actions/setup-go@v1
42+
- uses: actions/setup-go@v3
3543
with:
36-
go-version: '1.17.3'
44+
go-version: ${{ env.GOLANG_VERSION }}
3745
- name: Add ~/go/bin to PATH
3846
run: |
3947
echo "/home/runner/go/bin" >> $GITHUB_PATH

0 commit comments

Comments
 (0)