Skip to content

Commit be62cc1

Browse files
committed
Add Go 1.20 support to CI
Update Go compiler in CI to Go 1.20. Update golangci-lint to v1.51.x for Go 1.20 support. Update minimum Go version to Go 1.19 in go.mod. Signed-off-by: Austin Vazquez <[email protected]>
1 parent 2a963a2 commit be62cc1

2 files changed

Lines changed: 9 additions & 6 deletions

File tree

.github/workflows/ci.yml

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,9 @@ on:
66
pull_request:
77
branches: [ main ]
88

9+
env:
10+
GO_VERSION: 1.20.x
11+
912
jobs:
1013

1114
#
@@ -25,9 +28,9 @@ jobs:
2528
- name: Set up Go
2629
uses: actions/setup-go@v3
2730
with:
28-
go-version: 1.18.x
31+
go-version: ${{ env.GO_VERSION }}
2932

30-
- uses: containerd/project-checks@v1
33+
- uses: containerd/project-checks@v1.1.0
3134
with:
3235
working-directory: src/github.com/containerd/continuity
3336

@@ -45,7 +48,7 @@ jobs:
4548
- name: Set up Go
4649
uses: actions/setup-go@v3
4750
with:
48-
go-version: 1.18.x
51+
go-version: ${{ env.GO_VERSION }}
4952

5053
- name: Git line endings
5154
shell: bash
@@ -60,7 +63,7 @@ jobs:
6063
fetch-depth: 25
6164

6265
- name: Dependencies
63-
run: go install github.com/golangci/golangci-lint/cmd/golangci-lint@v1.50.1
66+
run: go install github.com/golangci/golangci-lint/cmd/golangci-lint@v1.51.2
6467

6568
- name: Lint
6669
shell: bash
@@ -99,7 +102,7 @@ jobs:
99102
- name: Set up Go
100103
uses: actions/setup-go@v3
101104
with:
102-
go-version: 1.18
105+
go-version: ${{ env.GO_VERSION }}
103106

104107
- name: Setup Go binary path
105108
shell: bash

go.mod

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

3-
go 1.17
3+
go 1.19
44

55
require (
66
github.com/Microsoft/go-winio v0.5.2

0 commit comments

Comments
 (0)