Skip to content

AI-native knowledge base & Evernote/Obsidian alternative with instant sync & native MCP. Free on Cloudflare or self-hosted via Docker.

test(desktop): validate both native update runner matrices (#776)

tianma-if00dd833bd437
diff --git a/scripts/native-update-instrumentation.test.mjs b/scripts/native-update-instrumentation.test.mjs
index 71153ea8..6f0a4d56 100644
--- a/scripts/native-update-instrumentation.test.mjs
+++ b/scripts/native-update-instrumentation.test.mjs
@@ -33,7 +33,8 @@ test("the installer workflow is official-only, manual, and never publishes asset
expect(workflow).toContain("workflow_dispatch:");
expect(workflow).not.toContain("contents: write");
expect(workflow).not.toContain("release_tag");
- expect(workflow).toContain("runner: macos-15-intel");
- expect(workflow).toContain("runner: windows-latest");
- expect(workflow).toContain("runner: ubuntu-22.04");
+ const matrices = [...workflow.matchAll(/'(\[\{.*?\}\])'/g)].map((match) => JSON.parse(match[1]));
+ expect(matrices).toHaveLength(2);
+ expect(matrices[0].map((entry) => entry.runner)).toEqual(["windows-latest"]);
+ expect(matrices[1].map((entry) => entry.runner)).toEqual(["macos-15", "macos-15-intel", "windows-latest", "ubuntu-22.04"]);
});