Skip to content

Commit 4c2a6b9

Browse files
committed
BUILD/MEDIUM: go: use Go 1.17
1 parent def1ae7 commit 4c2a6b9

File tree

5 files changed

+20
-7
lines changed

5 files changed

+20
-7
lines changed

.github/workflows/.goreleaser.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ jobs:
1212
- name: Set up Go
1313
uses: actions/setup-go@v2
1414
with:
15-
go-version: 1.16
15+
go-version: 1.17
1616
- name: Run GoReleaser
1717
uses: goreleaser/goreleaser-action@v2
1818
with:

.github/workflows/build.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,10 +7,10 @@ jobs:
77
runs-on: ubuntu-latest
88
steps:
99

10-
- name: Set up Go 1.16
10+
- name: Set up Go 1.17
1111
uses: actions/setup-go@v1
1212
with:
13-
go-version: 1.16
13+
go-version: 1.17
1414
id: go
1515

1616
- name: Check out code into the Go module directory

.github/workflows/e2e.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ jobs:
1313
- uses: actions/checkout@master
1414
- uses: actions/setup-go@v2
1515
with:
16-
go-version: '^1.16.6' # The Go version to download (if necessary) and use.
16+
go-version: '^1.17' # The Go version to download (if necessary) and use.
1717
- uses: engineerd/[email protected]
1818
with:
1919
name: dev

.gitlab-ci.yml

Lines changed: 15 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ variables:
1111
diff:
1212
stage: diff
1313
image:
14-
name: $CI_REGISTRY_GO/golang:1.16
14+
name: $CI_REGISTRY_GO/golang:1.17
1515
entrypoint: [ "" ]
1616
tags:
1717
- go
@@ -23,6 +23,19 @@ diff:
2323
only:
2424
- merge_requests
2525
- branches
26+
tidy:
27+
stage: lint
28+
image:
29+
name: $CI_REGISTRY_GO/golang:1.17
30+
entrypoint: [""]
31+
tags:
32+
- go
33+
script:
34+
- go mod tidy
35+
- test -z "$(git diff 2> /dev/null)" || exit 'Go modules not tidied, issue \`go mod tidy\` and commit the result'
36+
only:
37+
- merge_requests
38+
- branches
2639
golangci_lint:
2740
stage: lint
2841
image:
@@ -49,7 +62,7 @@ lint-commit-msg:
4962
unit-tests:
5063
stage: unit-tests
5164
image:
52-
name: $CI_REGISTRY_GO/golang:1.16
65+
name: $CI_REGISTRY_GO/golang:1.17
5366
entrypoint: [""]
5467
tags:
5568
- go

build/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
# See the License for the specific language governing permissions and
1313
# limitations under the License.
1414

15-
FROM golang:1.16-alpine AS builder
15+
FROM golang:1.17-alpine AS builder
1616

1717
RUN apk --no-cache add git openssh
1818

0 commit comments

Comments
 (0)