From 14461339f43029e1cfedf799fa8a60ffcf1f5b69 Mon Sep 17 00:00:00 2001 From: "M. J. Fromberger" Date: Tue, 5 Apr 2022 08:08:43 -0700 Subject: [PATCH] Update golangci-lint-action and golang-ci versions. (#8256) Also specify Go toolchain version in actions (now required). --- .github/workflows/lint.yml | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml index c1d51b8d0..b738b0a61 100644 --- a/.github/workflows/lint.yml +++ b/.github/workflows/lint.yml @@ -14,16 +14,19 @@ jobs: timeout-minutes: 8 steps: - uses: actions/checkout@v2.4.0 + - uses: actions/setup-go@v2 + with: + go-version: '^1.16' - uses: technote-space/get-diff-action@v5 with: PATTERNS: | **/**.go go.mod go.sum - - uses: golangci/golangci-lint-action@v2.5.2 + - uses: golangci/golangci-lint-action@v3.1.0 with: # Required: the version of golangci-lint is required and must be specified without patch version: we always use the latest patch version. - version: v1.45.2 + version: v1.45 args: --timeout 10m github-token: ${{ secrets.github_token }} if: env.GIT_DIFF