Bump to Go 1.17

This commit is contained in:
bvanvugt 2022-01-10 22:25:46 +00:00
parent ba855a8ab1
commit e1ab986486
7 changed files with 33 additions and 13 deletions

View file

@ -18,7 +18,7 @@ jobs:
name: Set up Go
uses: actions/setup-go@v2
with:
go-version: 1.15
go-version: 1.17
-
name: Run GoReleaser
uses: goreleaser/goreleaser-action@v2

View file

@ -11,7 +11,7 @@ jobs:
- uses: actions/checkout@main
- uses: actions/setup-go@main
with:
go-version: '1.15'
go-version: '1.17'
- name: Run gofmt
run: test -z $(gofmt -l .) || (gofmt -d . && exit 1)
@ -23,7 +23,7 @@ jobs:
- uses: actions/checkout@main
- uses: actions/setup-go@main
with:
go-version: '1.15'
go-version: '1.17'
- name: Run golangci-lint
run: |
curl -sSfL https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh | sh -s -- -b $(go env GOPATH)/bin v1.35.2
@ -37,7 +37,7 @@ jobs:
- uses: actions/checkout@main
- uses: actions/setup-go@main
with:
go-version: '1.15'
go-version: '1.17'
- name: Run go test
run: go test -race -coverprofile=coverage.txt ./...
- name: Upload coverage to codecov.io
@ -56,7 +56,7 @@ jobs:
- uses: actions/checkout@main
- uses: actions/setup-go@main
with:
go-version: '1.15'
go-version: '1.17'
- name: Run go build
run: |
go build ./cli/battlesnake