Backport of ci: Run `go mod tidy` check on submodules into release/1.17.x (#19748)

backport of commit 5316676bb6

Co-authored-by: Michael Zalimeni <michael.zalimeni@hashicorp.com>
backport/kisunji/controller-test-fix/internally-artistic-buzzard
hc-github-team-consul-core 2023-11-27 15:46:00 -06:00 committed by GitHub
parent 6ff06bd08d
commit 5354592dcf
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 1 deletions

View File

@ -26,7 +26,8 @@ jobs:
- uses: actions/setup-go@fac708d6674e30b6ba41289acaab6d4b75aa0753 # v4.0.1 - uses: actions/setup-go@fac708d6674e30b6ba41289acaab6d4b75aa0753 # v4.0.1
with: with:
go-version-file: 'go.mod' go-version-file: 'go.mod'
- run: go mod tidy # Run on all go.mod (include submodules).
- run: make go-mod-tidy
- run: | - run: |
if [[ -n $(git status -s) ]]; then if [[ -n $(git status -s) ]]; then
echo "Git directory has changes" echo "Git directory has changes"