Skip to content

Commit

Permalink
Add a validate renovate config action
Browse files Browse the repository at this point in the history
  • Loading branch information
thomasdax98 committed Jan 3, 2025
1 parent 9d596dc commit 954a796
Show file tree
Hide file tree
Showing 2 changed files with 38 additions and 1 deletion.
36 changes: 36 additions & 0 deletions .github/workflows/validate-renovate-config.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
name: Validate renovate config

on:
pull_request:
paths:
- renovate.json5
branches:
- main
- next
push:
paths:
- renovate.json5
branches:
- main
- next

jobs:
validate:
name: Validate
runs-on: ubuntu-latest
steps:
- run: echo "${{ github.actor }}"

- uses: actions/checkout@v4

- uses: pnpm/action-setup@v4

- name: Use Node.js 22.x
uses: actions/setup-node@v4
with:
node-version: 22
registry-url: "https://registry.npmjs.org"
cache: "pnpm" # https://github.com/actions/setup-node/blob/main/docs/advanced-usage.md#caching-packages-dependencies

- name: Validate renovate config
run: npx --yes --package renovate -- renovate-config-validator
3 changes: 2 additions & 1 deletion renovate.json5
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,8 @@
// Can't upgrade because: v8 is pure ESM
"matchPackageNames": ["query-string"], // test comment
"matchFileNames": ["packages/**"],
"allowedVersions": "^7.0.0"
"allowedVersions": "^7.0.0",
"abc": "test"
}
],
"rangeStrategy": "bump",
Expand Down

0 comments on commit 954a796

Please sign in to comment.