From bb9b13280e6c585b2057cb276441f8a79c5e7f15 Mon Sep 17 00:00:00 2001 From: Abhinav Gupta Date: Tue, 22 Mar 2022 09:48:49 -0700 Subject: [PATCH] CI: Run lint on 1.17 for now staticcheck is expected to have support for generics-based code in a few weeks. Meanwhile, we can run lint only on 1.17. --- .github/workflows/go.yml | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/.github/workflows/go.yml b/.github/workflows/go.yml index ca9e214ac..f8058ae3c 100644 --- a/.github/workflows/go.yml +++ b/.github/workflows/go.yml @@ -15,8 +15,11 @@ jobs: matrix: go: ["1.17.x", "1.18.x"] include: - - go: 1.18.x - latest: true + - go: 1.17.x + lint: true + # TODO: Switch to 1.18 after + # https://github.com/dominikh/go-tools/issues/1166 + # is resolved. steps: - name: Setup Go @@ -43,7 +46,7 @@ jobs: (cd zapgrpc/internal/test && go mod download) - name: Lint - if: matrix.latest + if: matrix.lint run: make lint - name: Test