You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@dubbo.apache.org by ke...@apache.org on 2021/04/20 00:08:36 UTC
[dubbo-go-pixiu] branch develop updated: Add reviewdog (#157)
This is an automated email from the ASF dual-hosted git repository.
kezhenxu94 pushed a commit to branch develop
in repository https://gitbox.apache.org/repos/asf/dubbo-go-pixiu.git
The following commit(s) were added to refs/heads/develop by this push:
new a16efb1 Add reviewdog (#157)
a16efb1 is described below
commit a16efb1ffe394d42dc8ec0f8b77bf3428d5eacd5
Author: zhangxun <18...@163.com>
AuthorDate: Tue Apr 20 08:08:31 2021 +0800
Add reviewdog (#157)
---
.github/actions/review-dog | 1 +
.github/workflows/reviewdog.yml | 16 ++++++++++++++++
.gitmodules | 3 +++
.travis.yml | 2 +-
4 files changed, 21 insertions(+), 1 deletion(-)
diff --git a/.github/actions/review-dog b/.github/actions/review-dog
new file mode 160000
index 0000000..c9fac88
--- /dev/null
+++ b/.github/actions/review-dog
@@ -0,0 +1 @@
+Subproject commit c9fac889cce0d374dc2700eb2bd28987d443fdf9
diff --git a/.github/workflows/reviewdog.yml b/.github/workflows/reviewdog.yml
new file mode 100644
index 0000000..88bde65
--- /dev/null
+++ b/.github/workflows/reviewdog.yml
@@ -0,0 +1,16 @@
+name: reviewdog
+on: [pull_request]
+jobs:
+ golangci-lint:
+ name: review
+ runs-on: ubuntu-latest
+ steps:
+ - name: Check out code into the Go module directory
+ uses: actions/checkout@v2
+ with:
+ persist-credentials: false
+ submodules: true
+ - name: golangci-lint
+ uses: ./.github/actions/review-dog
+ with:
+ golangci_lint_flags: "--enable-all --exclude-use-default=false"
diff --git a/.gitmodules b/.gitmodules
index 19b28cf..b529d8d 100644
--- a/.gitmodules
+++ b/.gitmodules
@@ -1,3 +1,6 @@
[submodule ".github/actions/actions-ding"]
path = .github/actions/actions-ding
url = https://github.com/zcong1993/actions-ding
+[submodule ".github/actions/review-dog"]
+ path = .github/actions/review-dog
+ url = https://github.com/reviewdog/action-golangci-lint
diff --git a/.travis.yml b/.travis.yml
index 0eff0dc..9daa314 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -11,7 +11,7 @@ script:
- go fmt ./... && [[ -z `git status -s` ]]
- sh before_validate_license.sh
- chmod u+x /tmp/tools/license/license-header-checker
- - /tmp/tools/license/license-header-checker -v -a -r -i vendor /tmp/tools/license/license.txt . go && [[ -z `git status -s` ]]
+ - /tmp/tools/license/license-header-checker -v -a -r -i vendor -i .github/actions /tmp/tools/license/license.txt . go && [[ -z `git status -s` ]]
# unit-test
- echo 'start unit-test'
- chmod u+x before_ut.sh && ./before_ut.sh