Added assertions
All checks were successful
Test Renovate Config / test-renovate (push) Successful in 50s
Test Renovate Config / test-renovate (pull_request) Successful in 52s

This commit is contained in:
2025-11-22 14:11:51 +01:00
parent e09ed170d7
commit 4853c7d5ca

View File

@@ -21,12 +21,18 @@ if grep -q "ERROR" renovate-output.log; then
exit 1
fi
# Example assertion: Check if a specific dependency update is planned
# echo "Checking for expected update..."
# if ! grep -q "update-dependency" renovate-output.log; then
# echo "Error: Expected dependency update not found."
# exit 1
# fi
# Specific assertions based on the test repo state
echo "Checking for expected nginx update..."
if ! grep -q "renovate/nginx-1.x" renovate-output.log; then
echo "Error: Expected 'renovate/nginx-1.x' branch not found in output."
exit 1
fi
echo "Checking for onboarding PR..."
if ! grep -q "Would create onboarding PR" renovate-output.log; then
echo "Error: Expected onboarding PR creation not found."
exit 1
fi
echo "Test passed!"
rm renovate-output.log