Skip to content

Commit 88d217a

Browse files
authored
chore: Installing golint before checkout (#439)
* chore: Installing golint before checkout * fix: Bumping go version to 1.16 for gopath legacy build * fix: Setting GO111MODULE=off for gopath build
1 parent cdb46be commit 88d217a

File tree

2 files changed

+11
-5
lines changed

2 files changed

+11
-5
lines changed

.github/workflows/ci.yml

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,21 +6,24 @@ jobs:
66
name: Module build
77
runs-on: ubuntu-latest
88
strategy:
9+
fail-fast: false
910
matrix:
10-
go: [1.12, 1.13, 1.14]
11+
go: [1.12, 1.16]
1112

1213
steps:
1314
- name: Set up Go ${{ matrix.go }}
1415
uses: actions/setup-go@v1
1516
with:
1617
go-version: ${{ matrix.go }}
1718

19+
- name: Install golint
20+
run: go get golang.org/x/lint/golint
21+
1822
- name: Check out code
1923
uses: actions/checkout@v2
2024

2125
- name: Run Linter
2226
run: |
23-
go get -u golang.org/x/lint/golint
2427
GOLINT=`go list -f {{.Target}} golang.org/x/lint/golint`
2528
$GOLINT -set_exit_status ./...
2629
@@ -44,12 +47,13 @@ jobs:
4447
runs-on: ubuntu-latest
4548
env:
4649
GOPATH: ${{ github.workspace }}/go
50+
GO111MODULE: off
4751

4852
steps:
49-
- name: Set up Go 1.12
53+
- name: Set up Go 1.16
5054
uses: actions/setup-go@v1
5155
with:
52-
go-version: 1.12
56+
go-version: 1.16
5357

5458
- name: Check out code into GOPATH
5559
uses: actions/checkout@v2

.github/workflows/release.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,14 +44,16 @@ jobs:
4444
with:
4545
go-version: 1.12
4646

47+
- name: Install golint
48+
run: go get golang.org/x/lint/golint
49+
4750
- name: Check out code
4851
uses: actions/checkout@v2
4952
with:
5053
ref: ${{ github.event.client_payload.ref || github.ref }}
5154

5255
- name: Run Linter
5356
run: |
54-
go get -u golang.org/x/lint/golint
5557
GOLINT=`go list -f {{.Target}} golang.org/x/lint/golint`
5658
$GOLINT -set_exit_status ./...
5759

0 commit comments

Comments
 (0)