run go mod tidy in CI

Ensure that go.mod and go.sum are correct
This commit is contained in:
James Bardin 2021-07-28 14:51:20 -04:00
parent 667083a70e
commit 86ba49de0c
1 changed files with 7 additions and 0 deletions

View File

@ -37,6 +37,13 @@ jobs:
git status --porcelain
exit 1
fi
- run:
name: verify go.mod and go.sum are correct
command: |
go mod tidy
git diff --quiet && exit 0
echo "please run 'go mod tidy' to ensure go.mod and go.sum are up to date"
exit 1
go-test:
executor: