Browse Source

add golang-ci linter to check-diff step

Lucas Severo Alves 4 years ago
parent
commit
2380ddb02f
1 changed files with 5 additions and 1 deletions
  1. 5 1
      .github/workflows/ci.yml

+ 5 - 1
.github/workflows/ci.yml

@@ -120,8 +120,12 @@ jobs:
           key: ${{ runner.os }}-pkg-${{ hashFiles('**/go.sum') }}
           key: ${{ runner.os }}-pkg-${{ hashFiles('**/go.sum') }}
           restore-keys: ${{ runner.os }}-pkg-
           restore-keys: ${{ runner.os }}-pkg-
 
 
+      # Check DIff also runs Reviewable which needs golangci-lint installed
       - name: Check Diff
       - name: Check Diff
-        run: make check-diff
+        run: |
+          wget -O- -nv https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh | sh -s v1.42.1
+          export PATH=$PATH:./bin
+          make check-diff
 
 
   unit-tests:
   unit-tests:
     runs-on: ubuntu-18.04
     runs-on: ubuntu-18.04