Skip to content

Commit

Permalink
Add Go 1.20 support to CI
Browse files Browse the repository at this point in the history
Update minimum Go version to Go 1.19 in go.mod. Update golangci-lint to
v1.51.x for Go 1.20 support.

Signed-off-by: Austin Vazquez <macedonv@amazon.com>
  • Loading branch information
austinvazquez committed Feb 25, 2023
1 parent 19ab5f5 commit e7e9e49
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 5 deletions.
16 changes: 12 additions & 4 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ jobs:
steps:
- uses: actions/setup-go@v3
with:
go-version: 1.19.x
go-version: 1.20.x

- name: Set env
shell: bash
Expand All @@ -40,14 +40,18 @@ jobs:

strategy:
matrix:
go-version: [1.19.x]
go: [1.19.x, 1.20.x]
os: [ubuntu-22.04]

steps:
- uses: actions/checkout@v3
with:
path: src/github.com/containerd/nri

- uses: actions/setup-go@v3
with:
go-version: ${{ matrix.go }}

- name: Set env
shell: bash
run: |
Expand All @@ -56,22 +60,26 @@ jobs:
- uses: golangci/golangci-lint-action@v3
with:
version: v1.50.1
version: v1.51.2
working-directory: src/github.com/containerd/nri

tests:
name: Tests
runs-on: ubuntu-22.04
timeout-minutes: 5

strategy:
matrix:
go: [1.19.x, 1.20.x]

steps:
- uses: actions/checkout@v3
with:
path: src/github.com/containerd/nri

- uses: actions/setup-go@v3
with:
go-version: 1.19.x
go-version: ${{ matrix.go }}

- name: Set env
shell: bash
Expand Down
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
module github.com/containerd/nri

go 1.18
go 1.19

// when updating containerd, adjust the replace rules accordingly
require (
Expand Down

0 comments on commit e7e9e49

Please sign in to comment.