From aed0610e0466a7ac6312f000e182c35d2920cf8a Mon Sep 17 00:00:00 2001 From: Ciara Stacke Date: Mon, 11 Apr 2022 15:45:17 +0100 Subject: [PATCH] Set go_version in linting --- .github/workflows/ci.yml | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index c7026c567..3740b24c5 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -56,11 +56,16 @@ jobs: lint: name: Lint runs-on: ubuntu-20.04 + needs: vars steps: - name: Checkout Repository uses: actions/checkout@v3 + - name: Setup Golang Environment + uses: actions/setup-go@v3 + with: + go-version: ${{ needs.vars.outputs.go_version }} - name: Lint Code - uses: golangci/golangci-lint-action@v2 + uses: golangci/golangci-lint-action@v3.1.0 with: args: --timeout ${{ env.GOLANGCI_TIMEOUT }}