Skip to content

Commit 525fada

Browse files
authored
consistently use go 1.17 throughout repository (#161)
1 parent 6470a8f commit 525fada

File tree

5 files changed

+19
-10
lines changed

5 files changed

+19
-10
lines changed

.github/workflows/ci.yml

Lines changed: 15 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,8 @@ jobs:
1414
runs-on: ubuntu-latest
1515
steps:
1616

17-
- name: Set up Go 1.x
18-
uses: actions/setup-go@v2
17+
- name: Set up Go
18+
uses: actions/setup-go@v3
1919
with:
2020
go-version: ~1.17
2121
id: go
@@ -53,27 +53,36 @@ jobs:
5353
runs-on: ubuntu-latest
5454
steps:
5555

56+
- name: Set up Go
57+
uses: actions/setup-go@v3
58+
with:
59+
go-version: ~1.17
60+
id: go
61+
5662
- name: Check out code into the Go module directory
5763
uses: actions/checkout@v2
5864

5965
- name: Lint
60-
uses: golangci/golangci-lint-action@v2
66+
uses: golangci/golangci-lint-action@v3
6167
with:
62-
version: v1.35.2
68+
version: v1.45.2
6369

6470
go-apidiff:
6571
name: go-apidiff
6672
if: github.event_name == 'pull_request'
6773
runs-on: ubuntu-latest
6874
steps:
75+
6976
- name: Set up Go
70-
uses: actions/setup-go@v2
77+
uses: actions/setup-go@v3
7178
with:
72-
go-version: ~1.16
79+
go-version: ~1.17
7380
id: go
81+
7482
- name: Check out code into the Go module directory
7583
uses: actions/checkout@v2
7684
with:
7785
fetch-depth: 0
86+
7887
- name: Run go-apidiff
7988
uses: joelanford/go-apidiff@main

.github/workflows/deploy.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ jobs:
2626
GPG_PASSWORD: ${{ secrets.GPG_PASSWORD }}
2727

2828
- name: Install Go
29-
uses: actions/setup-go@v2
29+
uses: actions/setup-go@v3
3030
with:
3131
go-version: ~1.17
3232

.goreleaser.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ env:
88
# Hooks to run before any build is run.
99
before:
1010
hooks:
11-
- go version | grep --quiet "go1\.15\.6" || echo "Go binary version must be 1.15.6"
11+
- go version | grep --quiet "go1\.17" || echo "Go binary version must be 1.17.x"
1212
- go mod download
1313

1414
# Binary builds.

Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# Build the manager binary
2-
FROM --platform=$BUILDPLATFORM golang:1.15 as builder
2+
FROM --platform=$BUILDPLATFORM golang:1.17 as builder
33
ARG TARGETOS
44
ARG TARGETARCH
55

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ fix:
6969
# Run various checks against code
7070
.PHONY: lint
7171
lint:
72-
fetch golangci-lint 1.43.0 && golangci-lint run
72+
fetch golangci-lint 1.45.2 && golangci-lint run
7373

7474
.PHONY: release
7575
release: GORELEASER_ARGS ?= --snapshot --rm-dist --skip-sign

0 commit comments

Comments
 (0)