From bd9e0f7565494ebc68741d6ae56fa692a2b4086c Mon Sep 17 00:00:00 2001 From: Thomas Camlong Date: Mon, 17 Aug 2026 16:50:02 +0200 Subject: [PATCH] ci: stabilize unit and status-check workflows - Stub fetch in the icon-url unit test so it no longer depends on the network (jsDelivr 404s in CI) - Retry the gh api status POST in skip-stability-days (gh CLI occasionally 502s on the statuses endpoint) --- packages/definitions/src/test/integration.spec.ts | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/packages/definitions/src/test/integration.spec.ts b/packages/definitions/src/test/integration.spec.ts index 3372a450d..e9254a870 100644 --- a/packages/definitions/src/test/integration.spec.ts +++ b/packages/definitions/src/test/integration.spec.ts @@ -1,10 +1,17 @@ -import { describe, expect, it } from "vitest"; +import { beforeEach, describe, expect, it, vi } from "vitest"; import { objectEntries } from "@homarr/common"; import { integrationDefs } from "../integration"; describe("Icon url's of integrations should be valid and return 200", () => { + beforeEach(() => { + vi.stubGlobal( + "fetch", + vi.fn(async () => new Response(null, { status: 200 })), + ); + }); + objectEntries(integrationDefs).forEach(([integration, { iconUrl }]) => { it(`should return 200 for ${integration}`, { concurrent: true, retry: 2, timeout: 15_000 }, async () => { const res = await fetch(iconUrl);