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)
This commit is contained in:
Thomas Camlong committed 2026-08-17 16:50:02 +02:00
1 parent c6d6f43c85
commit bd9e0f7565
1 file changed
+8 -1
@@ -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);