You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@dubbo.apache.org by al...@apache.org on 2022/03/04 11:24:16 UTC

[dubbo-go] branch 3.0 updated: feat: change lint to official lint (#1772)

This is an automated email from the ASF dual-hosted git repository.

alexstocks pushed a commit to branch 3.0
in repository https://gitbox.apache.org/repos/asf/dubbo-go.git


The following commit(s) were added to refs/heads/3.0 by this push:
     new 36adc8b  feat: change lint to official lint (#1772)
36adc8b is described below

commit 36adc8bb92dd1f143315256fa3f078159d1d25ea
Author: Jason Peng <lv...@gmail.com>
AuthorDate: Fri Mar 4 19:24:09 2022 +0800

    feat: change lint to official lint (#1772)
---
 .github/workflows/github-actions.yml |  6 ------
 .github/workflows/golangci-lint.yml  | 26 ++++++++++++++++++++++++++
 2 files changed, 26 insertions(+), 6 deletions(-)

diff --git a/.github/workflows/github-actions.yml b/.github/workflows/github-actions.yml
index f1d2710..6a6b661 100644
--- a/.github/workflows/github-actions.yml
+++ b/.github/workflows/github-actions.yml
@@ -70,12 +70,6 @@ jobs:
         go fmt ./... && git status && [[ -z `git status -s` ]]
         # diff -u <(echo -n) <(gofmt -d -s .)
 
-    - name: Install go ci lint
-      run: curl -sSfL https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh | sh -s -- -b $(go env GOPATH)/bin v1.41.1
-
-    - name: Run Linter
-      run: golangci-lint run --timeout=10m -v
-
     - name: Verify
       run: |
         make verify
diff --git a/.github/workflows/golangci-lint.yml b/.github/workflows/golangci-lint.yml
new file mode 100644
index 0000000..daa59c8
--- /dev/null
+++ b/.github/workflows/golangci-lint.yml
@@ -0,0 +1,26 @@
+name: golangci-lint
+on:
+  push:
+    branches: [master, develop, "1.5", "3.0"]
+  pull_request:
+    branches: "*"
+
+jobs:
+  golangci:
+    name: lint
+    runs-on: ubuntu-latest
+    strategy:
+      matrix:
+        golang:
+          - 1.15
+    steps:
+      - uses: actions/setup-go@v2
+        with:
+          go-version: 1.15
+      - uses: actions/checkout@v2
+      - name: golangci-lint
+        uses: golangci/golangci-lint-action@v2
+        with:
+          version: v1.44.2
+          args: --timeout=10m
+          skip-go-installation: true