Browse Source

Lint: check Go modules before test (#1220)

Loyalsoldier 4 years ago
parent
commit
c91f98c60d
1 changed files with 6 additions and 0 deletions
  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}