From 6f6e1c2254f75845c51076b60fe57df3ac17b933 Mon Sep 17 00:00:00 2001 From: Andrew Starr-Bochicchio Date: Thu, 16 May 2024 13:29:46 -0400 Subject: [PATCH] ci: Fix golangci linter failure --- .github/workflows/test.yml | 6 ++---- GNUmakefile | 2 +- 2 files changed, 3 insertions(+), 5 deletions(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index b931091a..d80fb132 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -10,7 +10,7 @@ jobs: test: strategy: matrix: - go-version: [1.20.x, 1.21.x] + go-version: [1.21.x, 1.22.x] os: [ubuntu-latest, macos-latest, windows-latest] runs-on: ${{ matrix.os }} @@ -40,10 +40,8 @@ jobs: if: matrix.os == 'ubuntu-latest' - name: Lint with golangci-lint - uses: golangci/golangci-lint-action@v3 - with: - only-new-issues: true if: matrix.os == 'ubuntu-latest' + run: make lint - name: Run unit tests run: make test diff --git a/GNUmakefile b/GNUmakefile index 0d6d2619..d35997b4 100644 --- a/GNUmakefile +++ b/GNUmakefile @@ -43,7 +43,7 @@ check-generate: generate fi install-golangci-lint: - @go install github.com/golangci/golangci-lint/cmd/golangci-lint@latest + @go install github.com/golangci/golangci-lint/cmd/golangci-lint@v1.56.2 lint: install-golangci-lint @golangci-lint run ./...