mirror of
https://github.com/nspcc-dev/neo-go.git
synced 2024-12-22 09:19:08 +00:00
*: drop go 1.17 support for github actions and tests
And support go 1.20 for github workflows.
This commit is contained in:
parent
856edcca39
commit
110356857d
4 changed files with 13 additions and 13 deletions
4
.github/workflows/build.yml
vendored
4
.github/workflows/build.yml
vendored
|
@ -55,7 +55,7 @@ jobs:
|
|||
- name: Set up Go
|
||||
uses: actions/setup-go@v3
|
||||
with:
|
||||
go-version: 1.19
|
||||
go-version: '1.20'
|
||||
cache: true
|
||||
|
||||
- name: Update Go modules
|
||||
|
@ -135,7 +135,7 @@ jobs:
|
|||
- name: Set up Go
|
||||
uses: actions/setup-go@v3
|
||||
with:
|
||||
go-version: 1.19
|
||||
go-version: '1.20'
|
||||
cache: true
|
||||
|
||||
- name: Login to DockerHub
|
||||
|
|
16
.github/workflows/run_tests.yml
vendored
16
.github/workflows/run_tests.yml
vendored
|
@ -20,7 +20,7 @@ jobs:
|
|||
steps:
|
||||
- uses: actions/setup-go@v3
|
||||
with:
|
||||
go-version: 1.19
|
||||
go-version: '1.20'
|
||||
- uses: actions/checkout@v3
|
||||
- name: golangci-lint
|
||||
uses: golangci/golangci-lint-action@v3
|
||||
|
@ -103,7 +103,7 @@ jobs:
|
|||
- name: Set up Go
|
||||
uses: actions/setup-go@v3
|
||||
with:
|
||||
go-version: 1.19
|
||||
go-version: '1.20'
|
||||
cache: true
|
||||
|
||||
- name: Update Go modules
|
||||
|
@ -125,20 +125,20 @@ jobs:
|
|||
strategy:
|
||||
matrix:
|
||||
os: [ubuntu-20.04, windows-2022, macos-12]
|
||||
go_versions: [ '1.17', '1.18', '1.19' ]
|
||||
go_versions: [ '1.18', '1.19', '1.20' ]
|
||||
exclude:
|
||||
# Only latest Go version for Windows and MacOS.
|
||||
- os: windows-2022
|
||||
go_versions: '1.17'
|
||||
go_versions: '1.18'
|
||||
- os: windows-2022
|
||||
go_versions: '1.18'
|
||||
- os: macos-12
|
||||
go_versions: '1.17'
|
||||
go_versions: '1.19'
|
||||
- os: macos-12
|
||||
go_versions: '1.18'
|
||||
- os: macos-12
|
||||
go_versions: '1.19'
|
||||
# Exclude latest Go version for Ubuntu as Coverage uses it.
|
||||
- os: ubuntu-20.04
|
||||
go_versions: '1.19'
|
||||
go_versions: '1.20'
|
||||
fail-fast: false
|
||||
steps:
|
||||
- uses: actions/checkout@v3
|
||||
|
|
|
@ -51,7 +51,7 @@ NeoGo, `:latest` points to the latest release) or build yourself.
|
|||
|
||||
### Building
|
||||
|
||||
Building NeoGo requires Go 1.17+ and `make`:
|
||||
Building NeoGo requires Go 1.18+ and `make`:
|
||||
|
||||
```
|
||||
make
|
||||
|
|
|
@ -376,7 +376,7 @@ func TestLoad(t *testing.T) {
|
|||
require.NoError(t, os.WriteFile(filenameErr, []byte(src+"invalid_token"), os.ModePerm))
|
||||
filenameErr = "'" + filenameErr + "'"
|
||||
goMod := []byte(`module test.example/vmcli
|
||||
go 1.17`)
|
||||
go 1.18`)
|
||||
require.NoError(t, os.WriteFile(filepath.Join(tmpDir, "go.mod"), goMod, os.ModePerm))
|
||||
|
||||
e := newTestVMCLI(t)
|
||||
|
@ -407,7 +407,7 @@ require (
|
|||
github.com/nspcc-dev/neo-go/pkg/interop v0.0.0
|
||||
)
|
||||
replace github.com/nspcc-dev/neo-go/pkg/interop => ` + filepath.Join(wd, "../../pkg/interop") + `
|
||||
go 1.17`)
|
||||
go 1.18`)
|
||||
require.NoError(t, os.WriteFile(filepath.Join(tmpDir, "go.mod"), goMod, os.ModePerm))
|
||||
return filename
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue