浏览代码

chore/add gofmot for actions

zhanghongtong 4 年之前
父节点
当前提交
c3baf6526c

+ 0 - 1
.github/workflows/build_packages.yaml

@@ -6,7 +6,6 @@ on:
     release:
         types:
             - published
-            - prereleased
 
 jobs:
     build:

+ 0 - 1
.github/workflows/run_fvt_tests.yaml

@@ -6,7 +6,6 @@ on:
     release:
         types:
             - published
-            - prereleased
 
 jobs:
     fvt_tests_with_edgex:

+ 7 - 1
.github/workflows/run_test_case.yaml

@@ -6,7 +6,6 @@ on:
     release:
         types:
             - published
-            - prereleased
 
 jobs:
     run_test_case:
@@ -17,6 +16,13 @@ jobs:
 
         steps:
         - uses: actions/checkout@v2
+        - name: run code static check
+          run : |
+            if [ ! -z "$(gofmt -l .)" ];then
+              echo "code static check error"
+              gofmt -l .
+              exit 1
+            fi
         - name: install lib
           run: apt-get update && apt-get install libzmq3-dev -y
         - name: run test case