TypeScript
test: run marketing and KDE capture suites in CI (#21849)
Julius Marmingef09b7d2631fc
diff --git a/.github/scripts/ci-changes.cjs b/.github/scripts/ci-changes.cjsindex 1904f3790a4..6a7fc4a6d5b 100644--- a/.github/scripts/ci-changes.cjs+++ b/.github/scripts/ci-changes.cjs@@ -36,6 +36,7 @@ const EXTRA_OWNERS = [// scripts/build-desktop-artifact.ts reads the GNOME extension manifest.[/^apps\/desktop\/gnome-extension\//, ["@t3tools/scripts"]],[/^native\/browser-secret\//, ["@t3tools/desktop"]],+ [/^native\/kde-snap-shot\//, ["@t3tools/desktop"]],[/^native\/libghostty-vt\//, ["@t3tools/web"]],];const RUST = /^native\/(resource-monitor|kde-snap-shot|hyprland-snap-shot)\//;@@ -112,10 +113,10 @@ function ownersOf(file, packages) {// A manifest can change dependencies or versions other packages read.if (path.posix.basename(file) === "package.json") return null;if (RUNS_EVERYTHING.some((pattern) => pattern.test(file))) return null;+ const extra = EXTRA_OWNERS.flatMap(([pattern, names]) => (pattern.test(file) ? names : []));// scripts/build-desktop-artifact.test.ts reads the crates' sources.- if (RUST.test(file)) return ["@t3tools/scripts"];+ if (RUST.test(file)) return ["@t3tools/scripts", ...extra];- const extra = EXTRA_OWNERS.flatMap(([pattern, names]) => (pattern.test(file) ? names : []));const owner = packages.filter((pkg) => file.startsWith(`${pkg.dir}/`)).sort((a, b) => b.dir.length - a.dir.length)[0];diff --git a/apps/desktop/vite.config.ts b/apps/desktop/vite.config.tsindex 7858f223698..893d6f8e076 100644--- a/apps/desktop/vite.config.ts+++ b/apps/desktop/vite.config.ts@@ -1,5 +1,5 @@import "vite-plus/test/config";-import { defineConfig } from "vite-plus";+import { defaultInclude, defineConfig } from "vite-plus";import { isDesktopRuntimeExternalDependency } from "../../scripts/lib/desktop-external-packages.ts";import { loadRepoEnv } from "../../scripts/lib/public-config.ts";@@ -141,6 +141,7 @@ export default defineConfig({},],test: {+ include: [...defaultInclude, "../../native/kde-snap-shot/src/*.test.ts"],// The Windows lane runs workspace suites concurrently; filesystem-heavy// desktop integration tests can exceed Vitest's 5 second default there.testTimeout: 15_000,diff --git a/apps/marketing/package.json b/apps/marketing/package.jsonindex 6eb4a6e41f6..ca0582be600 100644--- a/apps/marketing/package.json+++ b/apps/marketing/package.json@@ -8,7 +8,8 @@"dev": "node scripts/stage-install-scripts.mjs && astro dev","build": "node scripts/stage-install-scripts.mjs && astro build","preview": "astro preview",- "typecheck": "astro check"+ "typecheck": "astro check",+ "test": "vp test run"},"dependencies": {"@t3tools/shared": "workspace:*",