Skip to content

Commit a134f89

Browse files
committed
Update go version to 1.16
1 parent 7e259aa commit a134f89

3 files changed

Lines changed: 21 additions & 17 deletions

File tree

‎.github/workflows/main.yaml‎

Lines changed: 20 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,9 @@ on:
1212
tags:
1313
- "*"
1414

15+
env:
16+
GOLANG_VERSION: "1.16"
17+
1518
jobs:
1619
lint:
1720
name: Linting
@@ -22,7 +25,7 @@ jobs:
2225
- name: Lint
2326
uses: golangci/golangci-lint-action@v2
2427
with:
25-
version: v1.29
28+
version: v1.36
2629
github-token: ${{ secrets.GITHUB_TOKEN }}
2730
args: "--tests=false"
2831

@@ -35,7 +38,7 @@ jobs:
3538
- name: Format
3639
uses: golangci/golangci-lint-action@v2
3740
with:
38-
version: v1.29
41+
version: v1.36
3942
github-token: ${{ secrets.GITHUB_TOKEN }}
4043
args: "--disable-all -E golint,goimports,misspell"
4144

@@ -45,9 +48,10 @@ jobs:
4548
steps:
4649
- name: Checkout
4750
uses: actions/checkout@v2
48-
- uses: actions/setup-go@v1
51+
- name: Setup Golang
52+
uses: actions/setup-go@v2
4953
with:
50-
go-version: "1.15"
54+
go-version: ${{ env.GOLANG_VERSION }}
5155
- uses: actions/cache@v2
5256
with:
5357
path: ~/go/pkg/mod
@@ -74,9 +78,10 @@ jobs:
7478
steps:
7579
- name: Checkout
7680
uses: actions/checkout@v2
77-
- uses: actions/setup-go@v1
81+
- name: Setup Golang
82+
uses: actions/setup-go@v2
7883
with:
79-
go-version: "1.15"
84+
go-version: ${{ env.GOLANG_VERSION }}
8085
- uses: actions/cache@v2
8186
with:
8287
path: ~/go/pkg/mod
@@ -101,9 +106,10 @@ jobs:
101106
steps:
102107
- name: Checkout
103108
uses: actions/checkout@v2
104-
- uses: actions/setup-go@v1
109+
- name: Setup Golang
110+
uses: actions/setup-go@v2
105111
with:
106-
go-version: "1.15"
112+
go-version: ${{ env.GOLANG_VERSION }}
107113
- uses: actions/cache@v2
108114
with:
109115
path: ~/go/pkg/mod
@@ -134,9 +140,10 @@ jobs:
134140
steps:
135141
- name: Checkout
136142
uses: actions/checkout@v2
137-
- uses: actions/setup-go@v1
143+
- name: Setup Golang
144+
uses: actions/setup-go@v2
138145
with:
139-
go-version: "1.15"
146+
go-version: ${{ env.GOLANG_VERSION }}
140147
- uses: actions/cache@v2
141148
with:
142149
path: ~/go/pkg/mod
@@ -176,18 +183,16 @@ jobs:
176183
uses: actions/checkout@v2
177184
with:
178185
fetch-depth: 0
179-
- uses: actions/setup-go@v1
186+
- name: Setup Golang
187+
uses: actions/setup-go@v2
180188
with:
181-
go-version: "1.15"
189+
go-version: ${{ env.GOLANG_VERSION }}
182190
- uses: actions/cache@v2
183191
with:
184192
path: ~/go/pkg/mod
185193
key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }}
186194
restore-keys: |
187195
${{ runner.os }}-go-
188-
- name: Install dependencies
189-
run: |
190-
go mod download
191196
- name: Run GoReleaser
192197
uses: goreleaser/goreleaser-action@v2
193198
with:

‎go.mod‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
module github.com/dodopizza/kubectl-shovel
22

3-
go 1.15
3+
go 1.16
44

55
require (
66
github.com/google/uuid v1.2.0

‎go.sum‎

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,6 @@ github.com/fatih/color v1.7.0/go.mod h1:Zm6kSWBoL9eyXnKyktHP6abPY2pDugNf5Kwzbycv
108108
github.com/form3tech-oss/jwt-go v3.2.2+incompatible h1:TcekIExNqud5crz4xD2pavyTgWiPvpYe4Xau31I0PRk=
109109
github.com/form3tech-oss/jwt-go v3.2.2+incompatible/go.mod h1:pbq4aXjuKjdthFRnoDwaVPLA+WlJuPGy+QneDUgJi2k=
110110
github.com/fsnotify/fsnotify v1.4.7/go.mod h1:jwhsz4b93w/PPRr/qN1Yymfu8t87LnFCMoQvtojpjFo=
111-
github.com/fsnotify/fsnotify v1.4.9 h1:hsms1Qyu0jgnwNXIxa+/V/PDsU6CfLf6CNO8H7IWoS4=
112111
github.com/fsnotify/fsnotify v1.4.9/go.mod h1:znqG4EE+3YCdAaPaxE2ZRY/06pZUdp0tY4IgpuI1SZQ=
113112
github.com/fvbommel/sortorder v1.0.1/go.mod h1:uk88iVf1ovNn1iLfgUVU2F9o5eO30ui720w+kxuqRs0=
114113
github.com/ghodss/yaml v0.0.0-20150909031657-73d445a93680/go.mod h1:4dBDuWmgqj2HViK6kFavaiC9ZROes6MMH2rRYeMEF04=

0 commit comments

Comments
 (0)