forked from LaconicNetwork/kompose
chore(deps): bump minimum Go version to 1.21
This commit is contained in:
@@ -19,7 +19,7 @@ jobs:
|
|||||||
- name: Set up Go 1.x
|
- name: Set up Go 1.x
|
||||||
uses: actions/setup-go@v5
|
uses: actions/setup-go@v5
|
||||||
with:
|
with:
|
||||||
go-version: ^1.19
|
go-version: ^1.21
|
||||||
id: go
|
id: go
|
||||||
|
|
||||||
- name: Check out code into the Go module directory
|
- name: Check out code into the Go module directory
|
||||||
|
|||||||
@@ -5,7 +5,7 @@ jobs:
|
|||||||
lint:
|
lint:
|
||||||
strategy:
|
strategy:
|
||||||
matrix:
|
matrix:
|
||||||
go: [1.18, 1.19]
|
go: [1.21, 1.22]
|
||||||
name: lint
|
name: lint
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
@@ -16,4 +16,4 @@ jobs:
|
|||||||
with:
|
with:
|
||||||
go-version: ${{ matrix.go }}
|
go-version: ${{ matrix.go }}
|
||||||
- name: "Run go vet"
|
- name: "Run go vet"
|
||||||
run: "go vet ./pkg/..."
|
run: "go vet ./pkg/..."
|
||||||
|
|||||||
@@ -13,7 +13,7 @@ jobs:
|
|||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
strategy:
|
strategy:
|
||||||
matrix:
|
matrix:
|
||||||
go: [1.18, 1.19]
|
go: [1.21, 1.22]
|
||||||
cross_compile: [true, false]
|
cross_compile: [true, false]
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v4
|
||||||
@@ -35,7 +35,7 @@ jobs:
|
|||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v4
|
||||||
- uses: actions/setup-go@v5
|
- uses: actions/setup-go@v5
|
||||||
with:
|
with:
|
||||||
go-version: 1.19
|
go-version: ^1.21
|
||||||
- name: Install dyff
|
- name: Install dyff
|
||||||
run: go install github.com/homeport/dyff/cmd/dyff@v1.5.8
|
run: go install github.com/homeport/dyff/cmd/dyff@v1.5.8
|
||||||
- name: Create .coverprofile for each targeted directory by re:running tests
|
- name: Create .coverprofile for each targeted directory by re:running tests
|
||||||
|
|||||||
@@ -1,6 +1,8 @@
|
|||||||
module github.com/kubernetes/kompose
|
module github.com/kubernetes/kompose
|
||||||
|
|
||||||
go 1.18
|
go 1.21
|
||||||
|
|
||||||
|
toolchain go1.21.8
|
||||||
|
|
||||||
require (
|
require (
|
||||||
github.com/compose-spec/compose-go/v2 v2.0.0-rc.8
|
github.com/compose-spec/compose-go/v2 v2.0.0-rc.8
|
||||||
|
|||||||
@@ -441,7 +441,7 @@ func TestUnsupportedKeys(t *testing.T) {
|
|||||||
},
|
},
|
||||||
},
|
},
|
||||||
Services: types.Services{
|
Services: types.Services{
|
||||||
types.ServiceConfig{
|
"foo": types.ServiceConfig{
|
||||||
Name: "foo",
|
Name: "foo",
|
||||||
Image: "foo/bar",
|
Image: "foo/bar",
|
||||||
Build: &types.BuildConfig{
|
Build: &types.BuildConfig{
|
||||||
@@ -453,7 +453,7 @@ func TestUnsupportedKeys(t *testing.T) {
|
|||||||
"net1": {},
|
"net1": {},
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
types.ServiceConfig{
|
"bar": types.ServiceConfig{
|
||||||
Name: "bar",
|
Name: "bar",
|
||||||
Image: "bar/foo",
|
Image: "bar/foo",
|
||||||
Build: &types.BuildConfig{
|
Build: &types.BuildConfig{
|
||||||
@@ -476,7 +476,7 @@ func TestUnsupportedKeys(t *testing.T) {
|
|||||||
|
|
||||||
projectWithDefaultNetwork := &types.Project{
|
projectWithDefaultNetwork := &types.Project{
|
||||||
Services: types.Services{
|
Services: types.Services{
|
||||||
types.ServiceConfig{
|
"foo": types.ServiceConfig{
|
||||||
Networks: map[string]*types.ServiceNetworkConfig{
|
Networks: map[string]*types.ServiceNetworkConfig{
|
||||||
"default": {},
|
"default": {},
|
||||||
},
|
},
|
||||||
|
|||||||
Reference in New Issue
Block a user