Merge pull request #29260 from hashicorp/jbardin/go-mod-tidy
run go mod tidy in CI
This commit is contained in:
commit
f029183f63
|
@ -37,6 +37,13 @@ jobs:
|
||||||
git status --porcelain
|
git status --porcelain
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
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:
|
go-test:
|
||||||
executor:
|
executor:
|
||||||
|
|
Loading…
Reference in New Issue