浏览代码

Merge pull request #9183 from ndeloof/golangci-lint-action

use golangci-lint-action
Ulysses Souza 3 年之前
父节点
当前提交
02f78d2893
共有 1 个文件被更改,包括 3 次插入3 次删除
  1. 3 3
      .github/workflows/ci.yml

+ 3 - 3
.github/workflows/ci.yml

@@ -28,9 +28,9 @@ jobs:
       - name: Run golangci-lint
         env:
           BUILD_TAGS: e2e
-        run: |
-          curl -sSfL https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh | sudo sh -s -- -b /usr/bin/ v1.39.0
-          make -f builder.Makefile lint
+        uses: golangci/golangci-lint-action@v2
+        with:
+          args: --timeout=180s
 
   # only on main branch, costs too much for the gain on every PR
   validate-cross-build: