From 210fbe4e504530b9e3f3e94401b1a3bc2b0b427d Mon Sep 17 00:00:00 2001 From: Mayank Shah Date: Fri, 27 Nov 2020 12:41:09 +0530 Subject: [PATCH] CI: enable golint Signed-off-by: Mayank Shah --- .github/workflows/static.yaml | 30 ++++++++++++++++++------------ 1 file changed, 18 insertions(+), 12 deletions(-) diff --git a/.github/workflows/static.yaml b/.github/workflows/static.yaml index c0e62bf6c..cf31138b1 100644 --- a/.github/workflows/static.yaml +++ b/.github/workflows/static.yaml @@ -4,17 +4,23 @@ on: push: {} jobs: go_lint: - # Enable once https://github.com/kubernetes-csi/csi-driver-nfs/issues/90 is fixed - # name: Go Lint - # runs-on: ubuntu-18.04 - # steps: - # - name: Checkout code - # uses: actions/checkout@master - # - name: Run linter - # uses: golangci/golangci-lint-action@v1 - # with: - # version: v1.29 - # args: -E=gofmt,golint,misspell --timeout=30m0s + name: Go Lint + runs-on: ubuntu-latest + steps: + - name: Checkout code + uses: actions/checkout@master + - name: Run linter + uses: golangci/golangci-lint-action@v2 + with: + version: v1.29 + args: -E=gofmt,golint,misspell --timeout=30m0s + verify-helm: + name: Verify Helm + runs-on: ubuntu-latest + steps: + - name: Checkout code + uses: actions/checkout@master - name: Verify Helm run: | - hack/verify-helm-chart.sh \ No newline at end of file + sudo apt install yq + sudo hack/verify-helm-chart.sh \ No newline at end of file