From c91f98c60d4f58040c668a75d4e4db2bbedf438b Mon Sep 17 00:00:00 2001 From: Loyalsoldier <10487845+Loyalsoldier@users.noreply.github.com> Date: Sat, 21 Aug 2021 14:45:38 +0800 Subject: [PATCH] Lint: check Go modules before test (#1220) --- .github/workflows/test.yml | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 47aa25e3e74..2a86ba2c2a1 100644 --- a/.github/workflows/test.yml +++ b/.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}