From aea85928806910d27c90c11dca45f515a778b73c Mon Sep 17 00:00:00 2001 From: Waleed Malik Date: Thu, 29 Jul 2021 14:32:56 +0500 Subject: [PATCH] Update golangci-lint step in workflows --- .github/workflows/pull_request.yaml | 10 ++++++---- .github/workflows/push.yaml | 12 +++++++----- 2 files changed, 13 insertions(+), 9 deletions(-) diff --git a/.github/workflows/pull_request.yaml b/.github/workflows/pull_request.yaml index f269b36..326fd95 100644 --- a/.github/workflows/pull_request.yaml +++ b/.github/workflows/pull_request.yaml @@ -36,10 +36,12 @@ jobs: run: | make install - - name: Lint - run: | - curl -sSfL https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh | sh -s -- -b $(go env GOPATH)/bin v1.26.0 - golangci-lint run --timeout=10m ./... + - name: Run golangci-lint + uses: golangci/golangci-lint-action@v2.3.0 + with: + version: v1.33 + only-new-issues: false + args: --timeout 10m - name: Helm Lint run: | diff --git a/.github/workflows/push.yaml b/.github/workflows/push.yaml index 780d026..1737a4c 100644 --- a/.github/workflows/push.yaml +++ b/.github/workflows/push.yaml @@ -39,11 +39,13 @@ jobs: run: | make install - - name: Lint - run: | - curl -sSfL https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh | sh -s -- -b $(go env GOPATH)/bin v1.26.0 - golangci-lint run --timeout=10m ./... - + - name: Run golangci-lint + uses: golangci/golangci-lint-action@v2.3.0 + with: + version: v1.33 + only-new-issues: false + args: --timeout 10m + - name: Install kubectl run: | curl -LO "https://storage.googleapis.com/kubernetes-release/release/v${KUBERNETES_VERSION}/bin/linux/amd64/kubectl"