Skip to content

Commit

Permalink
Use go1.14 in github action (#612)
Browse files Browse the repository at this point in the history
* Use go1.14 in github action

* Bump golangci-lint to v1.27.0

* Bump min version to 1.14 in go.mod
  • Loading branch information
ferhatelmas authored Jun 19, 2020
1 parent 4e194df commit 2aa4db6
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 4 deletions.
7 changes: 5 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,12 +13,15 @@ jobs:

build:
runs-on: ubuntu-latest
strategy:
matrix:
goVer: [1.14]
steps:

- name: Set up Go 1.13
- name: Set up Go ${{ matrix.goVer }}
uses: actions/setup-go@v2
with:
go-version: 1.13
go-version: ${{ matrix.goVer }}
id: go

- name: Check out code into the Go module directory
Expand Down
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
module sigs.k8s.io/krew

go 1.13
go 1.14

require (
github.com/fatih/color v1.7.0
Expand Down
2 changes: 1 addition & 1 deletion hack/run-lint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ gopath="$(go env GOPATH)"
if ! [[ -x "$gopath/bin/golangci-lint" ]]; then
echo >&2 'Installing golangci-lint'
curl --silent --fail --location \
https://install.goreleaser.com/github.com/golangci/golangci-lint.sh | sh -s -- -b "$gopath/bin" v1.22.2
https://install.goreleaser.com/github.com/golangci/golangci-lint.sh | sh -s -- -b "$gopath/bin" v1.27.0
fi

# configured by .golangci.yml
Expand Down

0 comments on commit 2aa4db6

Please sign in to comment.