Update CI to Go 1.15
This commit is contained in:
parent
02b85487f0
commit
e1bafaac69
3 changed files with 10 additions and 10 deletions
12
.github/workflows/test.yml
vendored
12
.github/workflows/test.yml
vendored
|
|
@ -11,7 +11,7 @@ jobs:
|
|||
- uses: actions/checkout@main
|
||||
- uses: actions/setup-go@main
|
||||
with:
|
||||
go-version: '1.13'
|
||||
go-version: '1.15'
|
||||
- name: Run gofmt
|
||||
run: test -z $(gofmt -l .) || (gofmt -d . && exit 1)
|
||||
|
||||
|
|
@ -23,11 +23,11 @@ jobs:
|
|||
- uses: actions/checkout@main
|
||||
- uses: actions/setup-go@main
|
||||
with:
|
||||
go-version: '1.13'
|
||||
go-version: '1.15'
|
||||
- name: Run golangci-lint
|
||||
run: |
|
||||
curl -sSfL https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh | sh -s v1.22.2
|
||||
./bin/golangci-lint run -v ./...
|
||||
curl -sSfL https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh | sh -s -- -b $(go env GOPATH)/bin v1.35.2
|
||||
golangci-lint run -v ./...
|
||||
|
||||
test:
|
||||
name: Test (go test)
|
||||
|
|
@ -37,7 +37,7 @@ jobs:
|
|||
- uses: actions/checkout@main
|
||||
- uses: actions/setup-go@main
|
||||
with:
|
||||
go-version: '1.13'
|
||||
go-version: '1.15'
|
||||
- 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.13'
|
||||
go-version: '1.15'
|
||||
- name: Run go build
|
||||
run: |
|
||||
go build ./cli/battlesnake
|
||||
|
|
|
|||
|
|
@ -14,12 +14,12 @@ This repo provides a simple CLI tool to run games locally against your dev envir
|
|||
Download precompiled binaries here: <br>
|
||||
[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
|
||||
```
|
||||
|
||||
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
|
||||
cd rules
|
||||
|
|
|
|||
|
|
@ -7,12 +7,12 @@ This tool allows running a Battlesnake game locally. There are several command-l
|
|||
Download precompiled binaries here: <br>
|
||||
[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
|
||||
```
|
||||
|
||||
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
|
||||
cd rules
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue