Skip to content

Commit ca75437

Browse files
committed
feat: add go1.16
1 parent 1b30a17 commit ca75437

File tree

4 files changed

+11
-11
lines changed

4 files changed

+11
-11
lines changed

.github/workflows/pr.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ jobs:
1515
- name: Install Go
1616
uses: actions/setup-go@v2
1717
with:
18-
go-version: 1.15
18+
go-version: 1.16
1919
- name: Checkout code
2020
uses: actions/checkout@v2
2121
- name: Check go mod
@@ -41,7 +41,7 @@ jobs:
4141
- name: Install Go
4242
uses: actions/setup-go@v2
4343
with:
44-
go-version: 1.15 # test only the latest go version to speed up CI
44+
go-version: 1.16 # test only the latest go version to speed up CI
4545
- name: Run tests
4646
run: make.exe test
4747
continue-on-error: true
@@ -53,7 +53,7 @@ jobs:
5353
- name: Install Go
5454
uses: actions/setup-go@v2
5555
with:
56-
go-version: 1.15 # test only the latest go version to speed up CI
56+
go-version: 1.16 # test only the latest go version to speed up CI
5757
- name: Run tests
5858
run: make test
5959
tests-on-unix:
@@ -62,9 +62,9 @@ jobs:
6262
strategy:
6363
matrix:
6464
golang:
65-
- 1.13
6665
- 1.14
6766
- 1.15
67+
- 1.16
6868
steps:
6969
- uses: actions/checkout@v2
7070
- name: Install Go
@@ -92,6 +92,6 @@ jobs:
9292
- name: Install Go
9393
uses: actions/setup-go@v2
9494
with:
95-
go-version: 1.15
95+
go-version: 1.16
9696
- name: Check generated files are up to date
9797
run: make fast_check_generated

.github/workflows/tag.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ jobs:
1414
- name: Install Go
1515
uses: actions/setup-go@v2
1616
with:
17-
go-version: 1.15
17+
go-version: 1.16
1818
- name: Unshallow
1919
run: git fetch --prune --unshallow
2020

@@ -40,7 +40,7 @@ jobs:
4040
- name: Install Go
4141
uses: actions/setup-go@v2
4242
with:
43-
go-version: 1.15
43+
go-version: 1.16
4444

4545
- name: Unshallow
4646
run: git fetch --prune --unshallow

build/Dockerfile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# stage 1 building the code
2-
FROM golang:1.15 as builder
2+
FROM golang:1.16 as builder
33

44
ARG VERSION
55
ARG SHORT_COMMIT
@@ -10,7 +10,7 @@ WORKDIR /golangci
1010
RUN CGO_ENABLED=0 go build -trimpath -ldflags "-s -w -X main.version=$VERSION -X main.commit=$SHORT_COMMIT -X main.date=$DATE" -o golangci-lint ./cmd/golangci-lint/main.go
1111

1212
# stage 2
13-
FROM golang:1.15
13+
FROM golang:1.16
1414
# don't place it into $GOPATH/bin because Drone mounts $GOPATH as volume
1515
COPY --from=builder /golangci/golangci-lint /usr/bin/
1616
CMD ["golangci-lint"]

build/Dockerfile.alpine

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# stage 1 building the code
2-
FROM golang:1.15-alpine as builder
2+
FROM golang:1.16-alpine as builder
33

44
ARG VERSION
55
ARG SHORT_COMMIT
@@ -15,7 +15,7 @@ RUN apk --no-cache add gcc musl-dev git mercurial
1515
RUN CGO_ENABLED=0 go build -trimpath -ldflags "-s -w -X main.version=$VERSION -X main.commit=$SHORT_COMMIT -X main.date=$DATE" -o golangci-lint ./cmd/golangci-lint/main.go
1616

1717
# stage 2
18-
FROM golang:1.15-alpine
18+
FROM golang:1.16-alpine
1919
# gcc is required to support cgo;
2020
# git and mercurial are needed most times for go get`, etc.
2121
# See https://github.com/docker-library/golang/issues/80

0 commit comments

Comments
 (0)