Skip to content

ci: ensure example/ passes renovate-config-validator#962

Merged
viceice merged 2 commits intomainfrom
ci/validate
Dec 15, 2025
Merged

ci: ensure example/ passes renovate-config-validator#962
viceice merged 2 commits intomainfrom
ci/validate

Conversation

@jamietanna
Copy link
Copy Markdown
Contributor

@jamietanna jamietanna commented Nov 7, 2025

As noted in #910, we have invalid configuration shared as an example,
which isn't ideal.

We should validate any JSON and config.js files in the example
directory.

We need to make sure that we override the ESM settings in this repo, as
otherwise we receive:

module is not defined in ES module scope

When trying to validate the renovate-config.js.

This also follows the usage of a container from Renovate0 for using
the container to run the validator.

@jamietanna jamietanna changed the title ci ci: ensure example/ passes renovate-config-validator Nov 7, 2025
@jamietanna jamietanna marked this pull request as ready for review November 7, 2025 09:56
@jamietanna jamietanna requested a review from viceice November 7, 2025 09:56
Copy link
Copy Markdown
Member

@viceice viceice left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

why not adding to existing workflows, to we can make mandatory. otherwise we'll still miss this

@jamietanna
Copy link
Copy Markdown
Contributor Author

The thought here was to only run it when we're touching these files, so as not to run it unnecessarily - I can move it over and have conditional logic not to run if the files haven't changed?

@viceice
Copy link
Copy Markdown
Member

viceice commented Nov 18, 2025

The thought here was to only run it when we're touching these files, so as not to run it unnecessarily - I can move it over and have conditional logic not to run if the files haven't changed?

sure, but validattion is fast and cheap, so i don't think a condition is required
https://github.com/renovatebot/.github/actions/runs/19479242824/job/55746850938

@jamietanna jamietanna force-pushed the ci/validate branch 2 times, most recently from 8a9e93a to e6d23c9 Compare December 15, 2025 11:05
@jamietanna jamietanna requested a review from viceice December 15, 2025 11:05
@jamietanna jamietanna force-pushed the ci/validate branch 2 times, most recently from 4b8dbed to cba8e93 Compare December 15, 2025 11:25
As noted in #910, we have invalid configuration shared as an example,
which isn't ideal.

We should validate any JSON and `config.js` files in the example
directory.

We need to make sure that we override the ESM settings in this repo, as
otherwise we receive:

  module is not defined in ES module scope

When trying to validate the `renovate-config.js`.

This also follows the usage of a container from Renovate[0] for using
the container to run the validator.

[0]: https://github.com/renovatebot/.github/blob/2ab0f77818/.github/workflows/test.yml#L44
@viceice viceice enabled auto-merge (squash) December 15, 2025 16:35
@viceice viceice merged commit 5fde7be into main Dec 15, 2025
13 checks passed
@viceice viceice deleted the ci/validate branch December 15, 2025 16:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants