From b5666ef48e06c663b6605fe82f14d22497788448 Mon Sep 17 00:00:00 2001 From: fumiama Date: Fri, 27 Aug 2021 16:14:10 +0800 Subject: [PATCH] =?UTF-8?q?=E5=B0=9D=E8=AF=95=E4=BF=AE=E5=A4=8Dlint?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/pull.yml | 5 ++++- .github/workflows/push.yml | 5 ++++- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/.github/workflows/pull.yml b/.github/workflows/pull.yml index ef7abc05..6a8e3bc5 100644 --- a/.github/workflows/pull.yml +++ b/.github/workflows/pull.yml @@ -2,6 +2,9 @@ name: PullLint on: [pull_request] jobs: golangci: + strategy: + matrix: + go-version: [1.17.x] name: lint runs-on: ubuntu-latest steps: @@ -10,7 +13,7 @@ jobs: uses: golangci/golangci-lint-action@v2 with: # Optional: version of golangci-lint to use in form of v1.2 or v1.2.3 or `latest` to use the latest version - version: v1.17 + version: latest # Optional: working directory, useful for monorepos # working-directory: somedir diff --git a/.github/workflows/push.yml b/.github/workflows/push.yml index 546b1d04..354a9f0b 100644 --- a/.github/workflows/push.yml +++ b/.github/workflows/push.yml @@ -2,6 +2,9 @@ name: PushLint on: [push] jobs: golangci: + strategy: + matrix: + go-version: [1.17.x] name: lint_golangci-lint runs-on: ubuntu-latest steps: @@ -9,7 +12,7 @@ jobs: - name: golangci-lint uses: golangci/golangci-lint-action@v2 with: - version: v1.17 + version: latest args: --issues-exit-code=0 - name: Commit back continue-on-error: true