Compare commits

..

1 Commits

Author SHA1 Message Date
t.behrendt d48c2e9a16 refactor: to node action
CI / Test (pull_request) Successful in 11s
CI / Dry-Run (pull_request) Failing after 22s
CI / Check Dist (pull_request) Successful in 11s
2026-06-27 13:38:20 +02:00
3 changed files with 3 additions and 9 deletions
+1 -5
View File
@@ -9,14 +9,10 @@ jobs:
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:
- uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7.0.0 - uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7.0.0
- name: Validate Renovate Config - name: Validate JSON
uses: ./ uses: ./
with: with:
json-file: renovate.json json-file: renovate.json
- name: Validate oxfmt config
uses: ./
with:
json-file: .oxfmtrc.json
test: test:
name: Test name: Test
+1 -1
View File
@@ -22228,7 +22228,7 @@ const validateJson = async (jsonFileContent) => {
const schemaUrl = new URL(schema); const schemaUrl = new URL(schema);
const schemaText = await (await fetch(schemaUrl.toString())).text(); const schemaText = await (await fetch(schemaUrl.toString())).text();
const schemaObject = JSON.parse(schemaText); const schemaObject = JSON.parse(schemaText);
const validator = new import_ajv.default({ strict: false }); const validator = new import_ajv.default();
if (!validator.compile(schemaObject)(jsonObject)) throw new Error(`JSON file is not valid: ${validator.errorsText()}`); if (!validator.compile(schemaObject)(jsonObject)) throw new Error(`JSON file is not valid: ${validator.errorsText()}`);
}; };
//#endregion //#endregion
+1 -3
View File
@@ -14,9 +14,7 @@ export const validateJson = async (jsonFileContent: string): Promise<void> => {
const schemaText = await schemaContent.text(); const schemaText = await schemaContent.text();
const schemaObject = JSON.parse(schemaText); const schemaObject = JSON.parse(schemaText);
const validator = new Ajv({ const validator = new Ajv();
strict: false,
});
const validate = validator.compile(schemaObject); const validate = validator.compile(schemaObject);
const isValid = validate(jsonObject); const isValid = validate(jsonObject);
if (!isValid) { if (!isValid) {