Skip to content

Commit 3d10957

Browse files
only21milclaude
andauthored
fix(ci): a providerEnv.ts change runs every package's tests (#28286)
Co-authored-by: Claude Opus 5.5 <[email protected]>
1 parent d05e4f8 commit 3d10957

2 files changed

Lines changed: 8 additions & 1 deletion

File tree

‎.github/scripts/ci-changes.cjs‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ const INERT = [
1414

1515
// Shared test setup and vendored mobile dependencies affect every package.
1616
const RUNS_EVERYTHING = [
17-
/^packages\/shared\/src\/(HostProcess|testing\/longTempDir)\.ts$/,
17+
/^packages\/shared\/src\/(HostProcess|testing\/(longTempDir|providerEnv))\.ts$/,
1818
/^apps\/mobile\/deps\//,
1919
];
2020

‎scripts/check-changed.test.ts‎

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -178,6 +178,13 @@ describe("check:changed", () => {
178178
);
179179
});
180180
});
181+
182+
it.each([
183+
"packages/shared/src/testing/longTempDir.ts",
184+
"packages/shared/src/testing/providerEnv.ts",
185+
])("tests every package when the shared test setup file %s changes", (file) => {
186+
assert.strictEqual(decide([file], readWorkspace(), false).outputs.test_packages, "");
187+
});
181188
});
182189

183190
// Hooks export GIT_DIR and GIT_INDEX_FILE, and user config or the default

0 commit comments

Comments
 (0)