浏览代码

Lint: check Go modules before test (#1220)

Loyalsoldier 4 年之前
父节点
当前提交
c91f98c60d
共有 1 个文件被更改,包括 6 次插入0 次删除
  1. 6 0
      .github/workflows/test.yml

+ 6 - 0
.github/workflows/test.yml

@@ -37,6 +37,12 @@ jobs:
         with:
           fetch-depth: 0
 
+      - name: Check Go modules
+        run: |
+          go mod tidy
+          git diff --exit-code go.mod go.sum
+          go mod verify
+
       - name: Test
         run: |
           export PATH=$(go env GOPATH)/bin:${PATH}