Skip to content

Commit

Permalink
Ensure "contract test" updates dependencies
Browse files Browse the repository at this point in the history
... which will fail the this test because the dependencies are
out-of-date. This usually occurs first in a dependabot PR (that's
bumping a shared dependency).
  • Loading branch information
pivotaljohn committed Sep 27, 2022
1 parent e1e9a82 commit 4298169
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion hack/test-all.sh
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,14 @@ if [ -z "$GITHUB_ACTION" ]; then
fi

go test ./... "$@"
( cd examples/integrating-with-ytt/internal-templating && go test ./... )

# run a "contract test" to smoke Go module integration
(
cd examples/integrating-with-ytt/internal-templating
# in the case where a dependency is being bumped, update that dependency in this 👆 module.
go mod tidy
go test ./...
)

# error out if -run is given but no test is run
if [[ "$@" == *"-run "* ]]; then
Expand Down

0 comments on commit 4298169

Please sign in to comment.