From d42880acb16c3a5ea067ab30149f4da0fdf0346d Mon Sep 17 00:00:00 2001 From: Aditya Manthramurthy Date: Fri, 10 Jun 2022 15:12:05 -0700 Subject: [PATCH] Bump up linter version (#4114) - Add Go 1.18 to CI - Appears to be needed for Go 1.18 --- .github/workflows/go.yml | 8 +++++++- Makefile | 2 +- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/.github/workflows/go.yml b/.github/workflows/go.yml index 93202eb7..83976948 100644 --- a/.github/workflows/go.yml +++ b/.github/workflows/go.yml @@ -5,6 +5,12 @@ on: branches: - master +# This ensures that previous jobs for the PR are canceled when the PR is +# updated. +concurrency: + group: ${{ github.workflow }}-${{ github.head_ref }} + cancel-in-progress: true + jobs: build: name: Test on Go ${{ matrix.go-version }} and ${{ matrix.os }} @@ -13,7 +19,7 @@ jobs: GO111MODULE: on strategy: matrix: - go-version: [1.17.x] + go-version: [1.17.x, 1.18.x] os: [ubuntu-latest, macos-latest, windows-latest] steps: - name: Set up Go ${{ matrix.go-version }} on ${{ matrix.os }} diff --git a/Makefile b/Makefile index 0ade75e4..be24a8ce 100644 --- a/Makefile +++ b/Makefile @@ -18,7 +18,7 @@ checks: getdeps: @mkdir -p ${GOPATH}/bin - @echo "Installing golangci-lint" && curl -sSfL https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh | sh -s -- -b $(GOPATH)/bin v1.43.0 + @echo "Installing golangci-lint" && curl -sSfL https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh | sh -s -- -b $(GOPATH)/bin v1.46.2 @echo "Installing stringer" && go install -v golang.org/x/tools/cmd/stringer@latest crosscompile: