Skip to content

Commit

Permalink
fix the failing renovate validation check (#322)
Browse files Browse the repository at this point in the history
### Description

our validation check for the renovate config has been failing. 

1. use a specific gh action since calling the npx action now requires
some other config to work
2. the schema needed to be migrated

<!-- start pr-codex -->

---

## PR-Codex overview
The focus of this PR is to update Renovate configuration and CI workflow
setup.

### Detailed summary
- Updated Renovate base configuration
- Changed Node setup in CI workflow
- Added validation steps for team and repo configurations in CI workflow

> ✨ Ask PR-Codex anything about this PR by commenting with `/codex {your
question}`

<!-- end pr-codex -->
  • Loading branch information
aaronmgdr authored Aug 12, 2024
1 parent 20332db commit c5b4097
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 13 deletions.
19 changes: 13 additions & 6 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -410,11 +410,18 @@ jobs:
steps:
- name: Checkout Repo
uses: actions/checkout@v4
- name: Setup Node.js
- name: "Setup Node"
uses: actions/setup-node@v4
with:
node-version: 20.x
- name: Validate Renovate Config
run: |
npm install --global renovate
renovate-config-validator
node-version: 20.x
- name: Validate Team Config
uses: suzuki-shunsuke/[email protected]
with:
config_file_path: dt-renovate-base.json
strict: "false"
- name: Validate Repo Config
uses: suzuki-shunsuke/[email protected]
with:
config_file_path: renovate.json
strict: "false"

10 changes: 3 additions & 7 deletions dt-renovate-base.json
Original file line number Diff line number Diff line change
@@ -1,20 +1,16 @@
{
"$schema": "https://docs.renovatebot.com/renovate-schema.json",
"extends": [
"local>celo-org/.github:renovate-config"
],
"extends": ["local>celo-org/.github:renovate-config"],
"prCreation": "not-pending",
"prConcurrentLimit": 2,
"minimumReleaseAge": "5 days",
"rangeStrategy": "bump",
"major": {
"minimumReleaseAge": "14 days"
},
"major": {"minimumReleaseAge": "14 days"},
"packageRules": [
{
"matchManagers": ["github-actions"],
"automerge": true,
"autoApprove": "true",
"autoApprove": true,
"prCreation": "status-success"
}
]
Expand Down

0 comments on commit c5b4097

Please sign in to comment.