Merge pull request #29260 from hashicorp/jbardin/go-mod-tidy

run go mod tidy in CI
This commit is contained in:
James Bardin 2021-08-18 13:55:24 -04:00 committed by GitHub
commit f029183f63
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
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: