mirror of
https://github.com/morluto/rea.git
synced 2026-11-21 06:04:03 +00:00
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:
2 files changed
+15
No files matched your search
@@ -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,
|
||||
|
||||
Reference in new issue
Block a user