Explorar o código

Lint: check Go modules before test (#1220)

Loyalsoldier %!s(int64=4) %!d(string=hai) anos
pai
achega
c91f98c60d
Modificáronse 1 ficheiros con 6 adicións e 0 borrados
  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}