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: