Skip to content

Commit

Permalink
ci: add a workflow to validate renovate config (#2917)
Browse files Browse the repository at this point in the history
#1489

This PR adds a workflow to validate renovate configuration as specified
by [renovatebot
docs](https://docs.renovatebot.com/config-validation/#default-behavior).

I have tested the workflow by modifying the `renovate.json` with invalid
format.
  • Loading branch information
cuixq authored Nov 28, 2024
1 parent 7496fb4 commit 10e94cb
Showing 1 changed file with 26 additions and 0 deletions.
26 changes: 26 additions & 0 deletions .github/workflows/renovate-validator.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
name: Renovate Config Validator

on:
push:
branches: [ master ]
paths:
- 'renovate.json'
pull_request:
branches: [ master ]
paths:
- 'renovate.json'

jobs:
validate:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2

- name: Set up Nodes.js
uses: actions/setup-node@39370e3970a6d050c480ffad4ff0ed4d3fdee5af # v4.1.0
with:
node-version: latest

- name: Validate Renovate Config
run: npx --yes --package renovate -- renovate-config-validator

0 comments on commit 10e94cb

Please sign in to comment.