From 4f736e5da04e0baf9dc73af49e9ad06763f37bd5 Mon Sep 17 00:00:00 2001 From: Ashish Keshan Date: Tue, 5 Dec 2023 13:37:27 -0800 Subject: [PATCH] add a branch to fail out on error too --- src/main.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/main.js b/src/main.js index da42a9d..ac2417b 100644 --- a/src/main.js +++ b/src/main.js @@ -32,6 +32,8 @@ async function main() { if (runnerResults.some((r) => r.results.status === "fail")) { core.setFailed("Some tests failed."); + } elsif (runnerResults.some((r) => r.results.status === "error")) { + core.setFailed("Some tests errored."); } } catch (error) { console.error(error.message);