fix(ci): require passing provider test files (#12424)

Co-authored-by: ShuaixinHuang <ShuaixinHuang@users.noreply.github.com>
Co-authored-by: morluto <76467478+morluto@users.noreply.github.com>
This commit is contained in:
authored and GitHub committed 2026-11-19 20:04:50 +00:00
1 parent 5094c38152
commit e79e57552f
2 files changed
+15

No files matched your search

+2
View File
@@ -59,6 +59,8 @@ for (const [path, cases] of Object.entries(requirements[lane])) {
});
if (matches.length !== 1 || !Array.isArray(matches[0].assertionResults))
throw new Error(`Expected exactly one provider test result for ${path}`);
if (matches[0].status !== "passed")
throw new Error(`Required provider test file did not pass: ${path}`);
for (const name of cases) {
const results = matches[0].assertionResults.filter(
(test) => test?.fullName === name,