Update CI to Go 1.15

This commit is contained in:
bvanvugt 2021-01-19 15:07:25 -08:00
parent 02b85487f0
commit e1bafaac69
3 changed files with 10 additions and 10 deletions

View file

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

View file

@ -14,12 +14,12 @@ This repo provides a simple CLI tool to run games locally against your dev envir
Download precompiled binaries here: <br> Download precompiled binaries here: <br>
[https://github.com/BattlesnakeOfficial/rules/releases](https://github.com/BattlesnakeOfficial/rules/releases) [https://github.com/BattlesnakeOfficial/rules/releases](https://github.com/BattlesnakeOfficial/rules/releases)
Install as a Go package. Requires Go 1.13 or higher. [[Download](https://golang.org/dl/)] Install as a Go package. Requires Go 1.15 or higher. [[Download](https://golang.org/dl/)]
``` ```
go get github.com/BattlesnakeOfficial/rules/cli/battlesnake go get github.com/BattlesnakeOfficial/rules/cli/battlesnake
``` ```
Compile from source. Also requires Go 1.13 or higher. Compile from source. Also requires Go 1.15 or higher.
``` ```
git clone git@github.com:BattlesnakeOfficial/rules.git git clone git@github.com:BattlesnakeOfficial/rules.git
cd rules cd rules

View file

@ -7,12 +7,12 @@ This tool allows running a Battlesnake game locally. There are several command-l
Download precompiled binaries here: <br> Download precompiled binaries here: <br>
[https://github.com/BattlesnakeOfficial/rules/releases](https://github.com/BattlesnakeOfficial/rules/releases) [https://github.com/BattlesnakeOfficial/rules/releases](https://github.com/BattlesnakeOfficial/rules/releases)
Install as a Go package. Requires Go 1.13 or higher. [[Download](https://golang.org/dl/)] Install as a Go package. Requires Go 1.15 or higher. [[Download](https://golang.org/dl/)]
``` ```
go get github.com/BattlesnakeOfficial/rules/cli/battlesnake go get github.com/BattlesnakeOfficial/rules/cli/battlesnake
``` ```
Compile from source. Also requires Go 1.13 or higher. Compile from source. Also requires Go 1.15 or higher.
``` ```
git clone git@github.com:BattlesnakeOfficial/rules.git git clone git@github.com:BattlesnakeOfficial/rules.git
cd rules cd rules