From ee89e33f126a07cbe7864e92816cb84603faeec5 Mon Sep 17 00:00:00 2001 From: Michael Eischer Date: Thu, 4 Mar 2021 23:12:48 +0100 Subject: [PATCH] CI: Pin go version used for golint to 1.15.x This prevents unexpected lint failures when a new go version is released. --- .github/workflows/tests.yml | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index 85b8f202b..310f3e3e4 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -233,7 +233,14 @@ jobs: lint: name: lint runs-on: ubuntu-latest + env: + go: 1.15.x steps: + - name: Set up Go ${{ env.go }} + uses: actions/setup-go@v2 + with: + go-version: ${{ env.go }} + - name: Check out code uses: actions/checkout@v2 @@ -245,6 +252,7 @@ jobs: # Optional: show only new issues if it's a pull request. The default value is `false`. only-new-issues: true args: --verbose --timeout 5m + skip-go-installation: true # only run golangci-lint for pull requests, otherwise ALL hints get # reported. We need to slowly address all issues until we can enable