Parcourir la source

Lint: check Go modules before test (#1220)

Loyalsoldier il y a 4 ans
Parent
commit
c91f98c60d
1 fichiers modifiés avec 6 ajouts et 0 suppressions
  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}