From e1bafaac696ececf7453ea0ce42e9014c8b7c1b7 Mon Sep 17 00:00:00 2001 From: bvanvugt <1531419+bvanvugt@users.noreply.github.com> Date: Tue, 19 Jan 2021 15:07:25 -0800 Subject: [PATCH] Update CI to Go 1.15 --- .github/workflows/test.yml | 12 ++++++------ README.md | 4 ++-- cli/README.md | 4 ++-- 3 files changed, 10 insertions(+), 10 deletions(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 8bf234e..8e203e7 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -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 diff --git a/README.md b/README.md index c81daea..606ba9e 100644 --- a/README.md +++ b/README.md @@ -14,12 +14,12 @@ This repo provides a simple CLI tool to run games locally against your dev envir Download precompiled binaries here:
[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 diff --git a/cli/README.md b/cli/README.md index 71df087..d47b450 100644 --- a/cli/README.md +++ b/cli/README.md @@ -7,12 +7,12 @@ This tool allows running a Battlesnake game locally. There are several command-l Download precompiled binaries here:
[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