You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@servicecomb.apache.org by ro...@apache.org on 2021/05/06 06:30:21 UTC

[servicecomb-service-center] branch dev created (now d475f52)

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

robotljw pushed a change to branch dev
in repository https://gitbox.apache.org/repos/asf/servicecomb-service-center.git.


      at d475f52  SCB-2094 Ci: missing check for gofmt tool

This branch includes the following new commits:

     new d475f52  SCB-2094 Ci: missing check for gofmt tool

The 1 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails.  The revisions
listed as "add" were already present in the repository and have only
been added to this reference.


[servicecomb-service-center] 01/01: SCB-2094 Ci: missing check for gofmt tool

Posted by ro...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

robotljw pushed a commit to branch dev
in repository https://gitbox.apache.org/repos/asf/servicecomb-service-center.git

commit d475f52ed6d692bf81723288ed5076e628958187
Author: robotLJW <79...@qq.com>
AuthorDate: Thu May 6 14:29:10 2021 +0800

    SCB-2094 Ci: missing check for gofmt tool
---
 .github/workflows/golangci-lint.yml |  2 +-
 .github/workflows/static_check.yml  | 18 ++++++++++++++++++
 2 files changed, 19 insertions(+), 1 deletion(-)

diff --git a/.github/workflows/golangci-lint.yml b/.github/workflows/golangci-lint.yml
index a8963a9..61d140b 100644
--- a/.github/workflows/golangci-lint.yml
+++ b/.github/workflows/golangci-lint.yml
@@ -10,4 +10,4 @@ jobs:
         uses: golangci/golangci-lint-action@v2
         with:
           version: v1.29
-          args: --timeout=5m --skip-dirs='test,.*/controller/(v3|v4)$,.*/bootstrap$,server/broker,examples,frontend,scctl,integration' --out-format=colored-line-number --enable golint,gocyclo,goimports --skip-files=.*_test.go$
\ No newline at end of file
+          args: --timeout=5m --skip-dirs='test,.*/controller/(v3|v4)$,.*/bootstrap$,server/broker,examples,frontend,scctl,integration' --out-format=colored-line-number --enable gofmt,golint,gocyclo,goimports --skip-files=.*_test.go$
\ No newline at end of file
diff --git a/.github/workflows/static_check.yml b/.github/workflows/static_check.yml
index d5a75d2..67c8c14 100644
--- a/.github/workflows/static_check.yml
+++ b/.github/workflows/static_check.yml
@@ -15,6 +15,24 @@ jobs:
       - name: build
         run: |
           bash -x scripts/build/local.sh
+  format-check:
+    name: format-check
+    runs-on: ubuntu-latest
+    steps:
+      - name: Set up Go 1.13
+        uses: actions/setup-go@v1
+        with:
+          go-version: 1.13
+        id: go
+      - name: Check out code into the Go module directory
+        uses: actions/checkout@v1
+      - name: Fmt
+        run: |
+          bash scripts/ci/formatChecker.sh
+      - name: Misspell
+        run: |
+          go get -u github.com/client9/misspell/cmd/misspell
+          bash scripts/ci/formatChecker.sh
   ut4etcd:
     runs-on: ubuntu-latest
     steps: