From 42981697d0c6f21719f645180e7767ce19127f66 Mon Sep 17 00:00:00 2001 From: John Ryan Date: Tue, 27 Sep 2022 15:57:21 -0700 Subject: [PATCH] Ensure "contract test" updates dependencies ... 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). --- hack/test-all.sh | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/hack/test-all.sh b/hack/test-all.sh index a54aae3e..e45022a2 100755 --- a/hack/test-all.sh +++ b/hack/test-all.sh @@ -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