Compare commits

..

1 Commits

Author SHA1 Message Date
t.behrendt 30070f7f9c refactor: to node action (#47)
CD / Release (push) Successful in 33s
Refactoring the action from a composite to Node action. This change improves security through pinning of packages as well as better test-ability and error handling.

Reviewed-on: #47
Co-authored-by: Timo Behrendt <t.behrendt@t00n.de>
Co-committed-by: Timo Behrendt <t.behrendt@t00n.de>
2026-06-27 14:00:15 +02:00
2 changed files with 3 additions and 7 deletions
-4
View File
@@ -13,10 +13,6 @@ jobs:
uses: ./
with:
json-file: renovate.json
- name: Validate oxfmt config
uses: ./
with:
json-file: .oxfmtrc.json
test:
name: Test
+3 -3
View File
@@ -58,10 +58,10 @@ describe("validateJson()", () => {
{
ok: true,
text: async () =>
JSON.stringify({
({
despiteThisBeingValidJson:
"toString() breaks it, making it invalid",
}),
}).toString(),
},
);
@@ -69,7 +69,7 @@ describe("validateJson()", () => {
$schema: "https://json-schema.org/draft-07/schema",
});
await expect(validateJson(jsonFile)).rejects.toThrow(
'strict mode: unknown keyword: "despiteThisBeingValidJson"',
'"[object Object]" is not valid JSON',
);
});