Skip to content

Commit

Permalink
Merge pull request #30 from austinvazquez/add-go-1.20-support
Browse files Browse the repository at this point in the history
Add Go 1.20 support to CI
  • Loading branch information
mikebrow authored Feb 25, 2023
2 parents 19ab5f5 + e7e9e49 commit 2a8b655
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 2a8b655

Please sign in to comment.