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

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]: 2ab0f77818/.github/workflows/test.yml (L44)
This commit is contained in:
Jamie Tanna 2025-12-15 16:38:21 +00:00 committed by GitHub
parent f5951c521b
commit 5fde7be597
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 22 additions and 0 deletions

3
example/package.json Normal file
View file

@ -0,0 +1,3 @@
{
"type": "commonjs"
}