From 8d3e089f9d6f43a1ad0d2e7726caf1ef73cb8848 Mon Sep 17 00:00:00 2001 From: Sebastian Spaink <3441183+sspaink@users.noreply.github.com> Date: Mon, 4 Apr 2022 11:28:32 -0500 Subject: [PATCH] chore: add actions/setup-go@v2 to linter config (#10935) --- .github/workflows/golangci-lint.yml | 5 +++-- Makefile | 2 +- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/.github/workflows/golangci-lint.yml b/.github/workflows/golangci-lint.yml index d4eac0d32..cdea3a020 100644 --- a/.github/workflows/golangci-lint.yml +++ b/.github/workflows/golangci-lint.yml @@ -15,11 +15,12 @@ jobs: name: lint-pr-changes runs-on: ubuntu-latest steps: + - uses: actions/setup-go@v2 - uses: actions/checkout@v2 - name: golangci-lint uses: golangci/golangci-lint-action@v2 with: - version: v1.42.1 + version: v1.45.2 only-new-issues: true golangci-master: if: github.ref == 'refs/heads/master' @@ -30,6 +31,6 @@ jobs: - name: golangci-lint uses: golangci/golangci-lint-action@v2 with: - version: v1.42.1 + version: v1.45.2 only-new-issues: true args: --issues-exit-code=0 diff --git a/Makefile b/Makefile index f6d44222f..6c2e02b02 100644 --- a/Makefile +++ b/Makefile @@ -153,7 +153,7 @@ vet: .PHONY: lint-install lint-install: @echo "Installing golangci-lint" - go install github.com/golangci/golangci-lint/cmd/golangci-lint@v1.42.1 + go install github.com/golangci/golangci-lint/cmd/golangci-lint@v1.45.2 @echo "Installing markdownlint" npm install -g markdownlint-cli