From 6bd09d9a6f5f221c33e759d08ccfb033034aec8c Mon Sep 17 00:00:00 2001 From: Kim Tsao <84398375+kim-tsao@users.noreply.github.com> Date: Wed, 15 Jan 2025 03:37:57 -0500 Subject: [PATCH] chore: add renovate config validator to CI (#2189) Signed-off-by: Kim Tsao --- .github/workflows/renovate-checks.yaml | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 .github/workflows/renovate-checks.yaml diff --git a/.github/workflows/renovate-checks.yaml b/.github/workflows/renovate-checks.yaml new file mode 100644 index 0000000000..3c8a843876 --- /dev/null +++ b/.github/workflows/renovate-checks.yaml @@ -0,0 +1,20 @@ +name: PR Renovate Config Validator + +on: + pull_request: + paths: + - '.github/renovate.json' + # Renovate always uses the config from the repository default branch + # https://docs.renovatebot.com/configuration-options/ + branches: [ 'main' ] + +jobs: + renovate-config-validator: + runs-on: ubuntu-latest + name: Renovate Config Validator + steps: + - uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4 + - name: Validate config + # See https://docs.renovatebot.com/config-validation/ + run: | + npx --yes --package renovate -- renovate-config-validator --strict .github/renovate.json