ci: ensure example/ passes renovate-config-validator
Some checks failed
Build / prepare (push) Has been cancelled
Build / commitlint (push) Has been cancelled
Build / renovate-config-validator (push) Has been cancelled
Build / lint (push) Has been cancelled
Build / e2e (example/renovate-config.js) (push) Has been cancelled
Build / e2e (example/renovate-config.json) (push) Has been cancelled
Build / release (push) Has been cancelled

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-11-07 09:31:54 +00:00
parent 47283fac74
commit a417869363
2 changed files with 22 additions and 0 deletions

3
example/package.json Normal file
View file

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