diff --git a/.github/workflows/renovate.yaml b/.github/workflows/renovate.yaml new file mode 100644 index 000000000..2c810d018 --- /dev/null +++ b/.github/workflows/renovate.yaml @@ -0,0 +1,28 @@ +name: Renovate + +on: + pull_request: + paths: + - 'renovate.json' + push: + branches: + - master + +jobs: + validate-renovate-config: + name: Validate renovate.json + runs-on: ubuntu-latest + steps: + - name: Checkout repository + uses: actions/checkout@v4 + + - name: Set up Node.js + uses: actions/setup-node@v4 + with: + node-version: '20' + + - name: Install Renovate + run: npm install -g renovate + + - name: Validate renovate.json + run: renovate-config-validator diff --git a/renovate.json b/renovate.json index f45d8f110..70f5a8fe7 100644 --- a/renovate.json +++ b/renovate.json @@ -1,5 +1,16 @@ { + "$schema": "https://docs.renovatebot.com/renovate-schema.json", "extends": [ - "config:base" + "config:recommended" + ], + "packageRules": [ + { + "matchManagers": ["gomod"], + "matchDepTypes": ["indirect"], + "enabled": true + } + ], + "postUpdateOptions": [ + "gomodTidy" ] }