*: use Go 1.17 by default, test with 1.15, 1.16 and 1.17

This commit is contained in:
Roman Khimov 2021-08-25 22:21:45 +03:00
parent 6d074a96e9
commit 2585713f31
3 changed files with 26 additions and 9 deletions

View file

@ -13,6 +13,9 @@ executors:
- image: circleci/golang:1.16
environment:
GO111MODULE: "on"
go1_17:
docker:
- image: circleci/golang:1.17
commands:
gomod:
@ -29,7 +32,7 @@ commands:
jobs:
lint:
working_directory: /go/src/github.com/nspcc-dev/neo-go
executor: go1_16
executor: go1_17
steps:
- checkout
- gomod
@ -49,9 +52,19 @@ jobs:
- gomod
- run: go test -v -race ./...
test_cover:
test_1_16:
working_directory: /go/src/github.com/nspcc-dev/neo-go
executor: go1_16
steps:
- checkout
- run: git submodule sync
- run: git submodule update --init
- gomod
- run: go test -v -race ./...
test_cover:
working_directory: /go/src/github.com/nspcc-dev/neo-go
executor: go1_17
environment:
CGO_ENABLED: 0
steps:
@ -65,7 +78,7 @@ jobs:
build_cli:
working_directory: /go/src/github.com/nspcc-dev/neo-go
executor: go1_16
executor: go1_17
steps:
- checkout
- gomod
@ -76,7 +89,7 @@ jobs:
build_image:
working_directory: /go/src/github.com/nspcc-dev/neo-go
executor: go1_16
executor: go1_17
docker:
- image: golang:1-alpine
steps:
@ -108,6 +121,10 @@ workflows:
filters:
tags:
only: v/[0-9]+\.[0-9]+\.[0-9]+/
- test_1_16:
filters:
tags:
only: v/[0-9]+\.[0-9]+\.[0-9]+/
- test_cover:
filters:
tags:

View file

@ -57,7 +57,7 @@ jobs:
- name: Set up Go
uses: actions/setup-go@v2
with:
go-version: 1.16
go-version: 1.17
- name: Restore go modules from cache
uses: actions/cache@v2
@ -94,7 +94,7 @@ jobs:
- name: Set up Go
uses: actions/setup-go@v2
with:
go-version: 1.16
go-version: 1.17
- name: Restore go modules from cache
uses: actions/cache@v2

View file

@ -44,7 +44,7 @@ jobs:
- name: Set up Go
uses: actions/setup-go@v2
with:
go-version: 1.16
go-version: 1.17
- name: Restore Go modules from cache
uses: actions/cache@v2
@ -111,7 +111,7 @@ jobs:
- name: Set up Go
uses: actions/setup-go@v2
with:
go-version: 1.16
go-version: 1.17
- name: Restore Go modules from cache
uses: actions/cache@v2
@ -138,7 +138,7 @@ jobs:
- name: Set up Go
uses: actions/setup-go@v2
with:
go-version: 1.16
go-version: 1.17
- name: Restore Go modules from cache
uses: actions/cache@v2