From ad01a22f333e61872552c1a0afcbf747fc34b20a Mon Sep 17 00:00:00 2001 From: Kir Kolyshkin Date: Mon, 28 Feb 2022 17:54:33 -0800 Subject: [PATCH] ci: use golangci-lint-action v3 It needs golang to be installed (if the default golang which comes preinstalled in Ubuntu is not new/good enough). Let's use 1.17.x. We could have used 1.x instead but this might bring some failures when golang version is updated. Signed-off-by: Kir Kolyshkin --- .github/workflows/validate.yml | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/.github/workflows/validate.yml b/.github/workflows/validate.yml index a6dd3c7dc59..293a9ffc7bc 100644 --- a/.github/workflows/validate.yml +++ b/.github/workflows/validate.yml @@ -7,6 +7,8 @@ on: - master - release-* pull_request: +env: + GO_VERSION: 1.17.x jobs: @@ -14,6 +16,9 @@ jobs: runs-on: ubuntu-20.04 steps: - uses: actions/checkout@v3 + - uses: actions/setup-go@v2 + with: + go-version: "${{ env.GO_VERSION }}" - name: install deps run: | sudo apt -q update @@ -30,6 +35,9 @@ jobs: contents: read steps: - uses: actions/checkout@v3 + - uses: actions/setup-go@v2 + with: + go-version: "${{ env.GO_VERSION }}" - name: install deps run: | sudo apt -q update @@ -51,7 +59,7 @@ jobs: - name: install go uses: actions/setup-go@v2 with: - go-version: 1.x # Latest stable + go-version: "${{ env.GO_VERSION }}" - name: compile with no build tags run: make BUILDTAGS="" @@ -118,7 +126,7 @@ jobs: - name: install go uses: actions/setup-go@v2 with: - go-version: 1.x # Latest stable + go-version: "${{ env.GO_VERSION }}" - name: cache go mod and $GOCACHE uses: actions/cache@v2 with: