name: Renovate Bot Config Validation

on:
  pull_request:
    paths:
      - 'renovate.json'

jobs:
  renovate_bot_config_validation:
    runs-on: ubuntu-24.04

    steps:
    - name: Checkout code
      uses: actions/checkout@v4

    - name: Set up Node.js
      uses: actions/setup-node@v4
      with:
        node-version: '22'

    - name: Install Renovate and Config Validator
      run: |
        npm install -g npm@latest
        npm install --global renovate
        renovate-config-validator
