Skip to content

Commit 6fd2fdd

Browse files
authored
Add GitHub Actions step to install Go 1.14 and set up Golint (#363) (#364)
Signed-off-by: Niladri Halder <[email protected]>
1 parent a3e746d commit 6fd2fdd

File tree

2 files changed

+48
-4
lines changed

2 files changed

+48
-4
lines changed

.github/workflows/build.yml

Lines changed: 24 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,15 @@ jobs:
5454
- name: Checkout
5555
uses: actions/checkout@v2
5656

57+
- name: Set up Go 1.14
58+
uses: actions/setup-go@v3
59+
with:
60+
go-version: '1.14'
61+
check-latest: true
62+
63+
- name: Set up golint
64+
run: go get -u golang.org/x/lint/golint
65+
5766
- name: Build
5867
run: make build
5968

@@ -68,9 +77,13 @@ jobs:
6877
uses: actions/checkout@v2
6978

7079
- name: Set up Go 1.14
71-
uses: actions/setup-go@v2
80+
uses: actions/setup-go@v3
7281
with:
73-
go-version: 1.14.7
82+
go-version: '1.14'
83+
check-latest: true
84+
85+
- name: Set up golint
86+
run: go get -u golang.org/x/lint/golint
7487

7588
- name: Build
7689
run: make build
@@ -85,6 +98,15 @@ jobs:
8598
- name: Checkout
8699
uses: actions/checkout@v2
87100

101+
- name: Set up Go 1.14
102+
uses: actions/setup-go@v3
103+
with:
104+
go-version: '1.14'
105+
check-latest: true
106+
107+
- name: Set up golint
108+
run: go get -u golang.org/x/lint/golint
109+
88110
- name: Build
89111
run: make build
90112

.github/workflows/pull_request.yml

Lines changed: 24 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,15 @@ jobs:
5050
- name: Checkout
5151
uses: actions/checkout@v2
5252

53+
- name: Set up Go 1.14
54+
uses: actions/setup-go@v3
55+
with:
56+
go-version: '1.14'
57+
check-latest: true
58+
59+
- name: Set up golint
60+
run: go get -u golang.org/x/lint/golint
61+
5362
- name: Build
5463
run: make build
5564

@@ -64,9 +73,13 @@ jobs:
6473
uses: actions/checkout@v2
6574

6675
- name: Set up Go 1.14
67-
uses: actions/setup-go@v2
76+
uses: actions/setup-go@v3
6877
with:
69-
go-version: 1.14.7
78+
go-version: '1.14'
79+
check-latest: true
80+
81+
- name: Set up golint
82+
run: go get -u golang.org/x/lint/golint
7083

7184
- name: Build
7285
run: make build
@@ -81,6 +94,15 @@ jobs:
8194
- name: Checkout
8295
uses: actions/checkout@v2
8396

97+
- name: Set up Go 1.14
98+
uses: actions/setup-go@v3
99+
with:
100+
go-version: '1.14'
101+
check-latest: true
102+
103+
- name: Set up golint
104+
run: go get -u golang.org/x/lint/golint
105+
84106
- name: Build
85107
run: make build
86108

0 commit comments

Comments
 (0)