From 24232f17a4f62713cdacdec3d29d792de740a520 Mon Sep 17 00:00:00 2001 From: Ciara Stacke <18287516+ciarams87@users.noreply.github.com> Date: Mon, 11 Apr 2022 16:05:10 +0100 Subject: [PATCH] Set go_version in linting (#99) --- .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 }}