Skip to content
This repository has been archived by the owner on Jun 12, 2024. It is now read-only.

Commit

Permalink
add a branch to fail out on error too
Browse files Browse the repository at this point in the history
  • Loading branch information
ashishkeshan committed Dec 5, 2023
1 parent 8dd1f5a commit 4f736e5
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 4f736e5

Please sign in to comment.