Added back dry-run test
This commit is contained in:
@@ -6,20 +6,20 @@ on:
|
|||||||
pull_request:
|
pull_request:
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
# test-renovate:
|
test-renovate:
|
||||||
# runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
# container: ghcr.io/renovatebot/renovate:42.8.1
|
container: ghcr.io/renovatebot/renovate:42.8.1
|
||||||
# steps:
|
steps:
|
||||||
# - name: Checkout
|
- name: Checkout
|
||||||
# uses: actions/checkout@v5.0.0
|
uses: actions/checkout@v5.0.0
|
||||||
|
|
||||||
# - name: Run Renovate Test Script
|
- name: Run Renovate Test Script
|
||||||
# run: bash scripts/test-renovate.sh
|
run: bash scripts/test-renovate.sh
|
||||||
# env:
|
env:
|
||||||
# RENOVATE_CONFIG_FILE: "/workspace/kovagoadi.hu/Renovate/renovate-config.js"
|
RENOVATE_CONFIG_FILE: "/workspace/kovagoadi.hu/Renovate/renovate-config.js"
|
||||||
# LOG_LEVEL: "debug"
|
LOG_LEVEL: "debug"
|
||||||
# RENOVATE_TOKEN: ${{ secrets.RENOVATE_TEST_TOKEN }}
|
RENOVATE_TOKEN: ${{ secrets.RENOVATE_TEST_TOKEN }}
|
||||||
# GITHUB_COM_TOKEN: ${{ secrets.RENOVATE_GITHUB_TOKEN }}
|
GITHUB_COM_TOKEN: ${{ secrets.RENOVATE_GITHUB_TOKEN }}
|
||||||
|
|
||||||
e2e-renovate:
|
e2e-renovate:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
|||||||
@@ -1,56 +1,56 @@
|
|||||||
# #!/bin/bash
|
#!/bin/bash
|
||||||
# set -e
|
set -e
|
||||||
|
|
||||||
# echo "Validating Renovate configuration..."
|
echo "Validating Renovate configuration..."
|
||||||
# renovate-config-validator
|
renovate-config-validator
|
||||||
|
|
||||||
# echo "Running Renovate dry-run..."
|
echo "Running Renovate dry-run..."
|
||||||
# renovate --dry-run=full > renovate-output.log 2>&1
|
renovate --dry-run=full > renovate-output.log 2>&1
|
||||||
# cat renovate-output.log
|
cat renovate-output.log
|
||||||
|
|
||||||
# # Assertions
|
# Assertions
|
||||||
# echo "Checking for successful run..."
|
echo "Checking for successful run..."
|
||||||
# if ! grep -q "Repository finished" renovate-output.log; then
|
if ! grep -q "Repository finished" renovate-output.log; then
|
||||||
# echo "Error: Renovate run did not finish successfully."
|
echo "Error: Renovate run did not finish successfully."
|
||||||
# exit 1
|
exit 1
|
||||||
# fi
|
fi
|
||||||
|
|
||||||
# echo "Checking for errors..."
|
echo "Checking for errors..."
|
||||||
# if grep -q "ERROR" renovate-output.log; then
|
if grep -q "ERROR" renovate-output.log; then
|
||||||
# echo "Error: Renovate log contains errors."
|
echo "Error: Renovate log contains errors."
|
||||||
# exit 1
|
exit 1
|
||||||
# fi
|
fi
|
||||||
|
|
||||||
# # Specific assertions based on the test repo state
|
# Specific assertions based on the test repo state
|
||||||
# echo "Checking for expected nginx update..."
|
echo "Checking for expected nginx update..."
|
||||||
# if ! grep -q "renovate/nginx-" renovate-output.log; then
|
if ! grep -q "renovate/nginx-" renovate-output.log; then
|
||||||
# echo "Error: Expected 'renovate/nginx-' branch not found in output."
|
echo "Error: Expected 'renovate/nginx-' branch not found in output."
|
||||||
# exit 1
|
exit 1
|
||||||
# fi
|
fi
|
||||||
|
|
||||||
# echo "Checking for nginx PR title..."
|
echo "Checking for nginx PR title..."
|
||||||
# if ! grep -q "Update nginx Docker tag to" renovate-output.log; then
|
if ! grep -q "Update nginx Docker tag to" renovate-output.log; then
|
||||||
# echo "Error: Expected PR title 'Update nginx Docker tag to...' not found."
|
echo "Error: Expected PR title 'Update nginx Docker tag to...' not found."
|
||||||
# exit 1
|
exit 1
|
||||||
# fi
|
fi
|
||||||
|
|
||||||
# echo "Checking for expected actions/checkout update..."
|
echo "Checking for expected actions/checkout update..."
|
||||||
# if ! grep -q "renovate/actions-checkout-" renovate-output.log; then
|
if ! grep -q "renovate/actions-checkout-" renovate-output.log; then
|
||||||
# echo "Error: Expected 'renovate/actions-checkout-' branch not found in output."
|
echo "Error: Expected 'renovate/actions-checkout-' branch not found in output."
|
||||||
# exit 1
|
exit 1
|
||||||
# fi
|
fi
|
||||||
|
|
||||||
# echo "Checking for actions/checkout PR title..."
|
echo "Checking for actions/checkout PR title..."
|
||||||
# if ! grep -q "Update actions/checkout action to" renovate-output.log; then
|
if ! grep -q "Update actions/checkout action to" renovate-output.log; then
|
||||||
# echo "Error: Expected PR title 'Update actions/checkout action to...' not found."
|
echo "Error: Expected PR title 'Update actions/checkout action to...' not found."
|
||||||
# exit 1
|
exit 1
|
||||||
# fi
|
fi
|
||||||
|
|
||||||
# echo "Checking for onboarding PR..."
|
echo "Checking for onboarding PR..."
|
||||||
# if ! grep -q "Would create onboarding PR" renovate-output.log; then
|
if ! grep -q "Would create onboarding PR" renovate-output.log; then
|
||||||
# echo "Error: Expected onboarding PR creation not found."
|
echo "Error: Expected onboarding PR creation not found."
|
||||||
# exit 1
|
exit 1
|
||||||
# fi
|
fi
|
||||||
|
|
||||||
# echo "Test passed!"
|
echo "Test passed!"
|
||||||
# rm renovate-output.log
|
rm renovate-output.log
|
||||||
|
|||||||
Reference in New Issue
Block a user