From bfb3893774bc5728ad29f74d75cdec78583a8f47 Mon Sep 17 00:00:00 2001 From: makeworld Date: Fri, 15 Apr 2022 11:39:14 -0400 Subject: [PATCH] Fix golangci-lint by using Go 1.17 Copied from: https://github.com/mercari/spanner-autoscaler/pull/83 --- .github/workflows/golangci-lint.yml | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/.github/workflows/golangci-lint.yml b/.github/workflows/golangci-lint.yml index dc33044..3276e5a 100644 --- a/.github/workflows/golangci-lint.yml +++ b/.github/workflows/golangci-lint.yml @@ -19,9 +19,12 @@ jobs: name: lint runs-on: ubuntu-latest steps: - - uses: actions/checkout@v2 + - uses: actions/setup-go@v3 + with: + go-version: 1.17 + - uses: actions/checkout@v3 - name: golangci-lint - uses: golangci/golangci-lint-action@v2 + uses: golangci/golangci-lint-action@v3 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.43