Skip to content

Commit

Permalink
ci: use go 1.18
Browse files Browse the repository at this point in the history
go 1.19 will be released in August 2022 and go 1.17 will reach end of
life in August 2022.
Also update go version in go.mod with `go mod tidy -go=1.18`.
  • Loading branch information
higebu committed Jul 21, 2022
1 parent 047e107 commit 2117125
Show file tree
Hide file tree
Showing 4 changed files with 35 additions and 592 deletions.
12 changes: 6 additions & 6 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ jobs:
- uses: actions/checkout@master
- uses: actions/setup-go@v2
with:
go-version: '~1.17.0'
go-version: '~1.18.0'
- run: |
go env
go build ./cmd/gobgp
Expand All @@ -30,7 +30,7 @@ jobs:
- uses: actions/checkout@master
- uses: actions/setup-go@v2
with:
go-version: '~1.17.0'
go-version: '~1.18.0'
- run: |
go test -race -timeout 240s ./...
if [ "$(go env GOARCH)" = "amd64" ]; then go test -race github.com/osrg/gobgp/v3/pkg/packet/bgp -run ^Test_RaceCondition$; else echo 'skip'; fi
Expand All @@ -44,7 +44,7 @@ jobs:
- uses: actions/checkout@master
- uses: actions/setup-go@v2
with:
go-version: '~1.17.0'
go-version: '~1.18.0'
- run: |
go env GOARCH
go test -timeout 240s ./...
Expand All @@ -56,7 +56,7 @@ jobs:
- uses: actions/checkout@master
- uses: actions/setup-go@v2
with:
go-version: '~1.17.0'
go-version: '~1.18.0'
- name: golangci-lint
uses: golangci/golangci-lint-action@v2

Expand All @@ -67,7 +67,7 @@ jobs:
- uses: actions/checkout@master
- uses: actions/setup-go@v2
with:
go-version: '~1.17.0'
go-version: '~1.18.0'
- run: |
python test/scenario_test/ci-scripts/build_embeded_go.py docs/sources/lib.md
python test/scenario_test/ci-scripts/build_embeded_go.py docs/sources/lib-ls.md
Expand All @@ -92,7 +92,7 @@ jobs:
- uses: actions/checkout@master
- uses: actions/setup-go@v2
with:
go-version: '~1.17.0'
go-version: '~1.18.0'
- name: container image
run: |
sudo apt-get install python3-setuptools
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ jobs:
- name: Set up Go
uses: actions/setup-go@v2
with:
go-version: 1.17
go-version: 1.18

- name: Run GoReleaser
uses: goreleaser/goreleaser-action@v2
Expand Down
30 changes: 28 additions & 2 deletions go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ require (
github.com/coreos/go-systemd/v22 v22.3.2
github.com/dgryski/go-farm v0.0.0-20200201041132-a6ae2369ad13
github.com/eapache/channels v1.1.0
github.com/eapache/queue v1.1.0 // indirect
github.com/go-test/deep v1.0.8
github.com/google/go-cmp v0.5.7
github.com/google/uuid v1.3.0
Expand All @@ -23,4 +22,31 @@ require (
google.golang.org/protobuf v1.27.1
)

go 1.15
require (
github.com/davecgh/go-spew v1.1.1 // indirect
github.com/eapache/queue v1.1.0 // indirect
github.com/fsnotify/fsnotify v1.5.1 // indirect
github.com/golang/protobuf v1.5.2 // indirect
github.com/hashicorp/hcl v1.0.0 // indirect
github.com/inconshreveable/mousetrap v1.0.0 // indirect
github.com/kr/text v0.2.0 // indirect
github.com/magiconair/properties v1.8.5 // indirect
github.com/mitchellh/mapstructure v1.4.3 // indirect
github.com/pelletier/go-toml v1.9.4 // indirect
github.com/pmezard/go-difflib v1.0.0 // indirect
github.com/rogpeppe/go-internal v1.6.1 // indirect
github.com/spf13/afero v1.6.0 // indirect
github.com/spf13/cast v1.4.1 // indirect
github.com/spf13/jwalterweatherman v1.1.0 // indirect
github.com/spf13/pflag v1.0.5 // indirect
github.com/subosito/gotenv v1.2.0 // indirect
github.com/vishvananda/netns v0.0.0-20200728191858-db3c7e526aae // indirect
golang.org/x/sys v0.0.0-20211216021012-1d35b9e2eb4e // indirect
google.golang.org/genproto v0.0.0-20211208223120-3a66f561d7aa // indirect
gopkg.in/check.v1 v1.0.0-20190902080502-41f04d3bba15 // indirect
gopkg.in/ini.v1 v1.66.2 // indirect
gopkg.in/yaml.v2 v2.4.0 // indirect
gopkg.in/yaml.v3 v3.0.0-20210107192922-496545a6307b // indirect
)

go 1.18
Loading

0 comments on commit 2117125

Please sign in to comment.