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

Commit

Permalink
set failure if the test errors out
Browse files Browse the repository at this point in the history
  • Loading branch information
ashishkeshan committed Apr 16, 2024
1 parent 85da803 commit 2f9eee1
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 @@ -18,6 +18,8 @@ try {

if (runnerResults.some((r) => r.results.status === "fail")) {
core.setFailed("Some tests failed.");
} else if (runnerResults.some((r) => r.results.status === 'error')) {
core.setFailed("Some tests errored.");
}
} catch (error) {
const input = core.getInput("runners");
Expand Down

0 comments on commit 2f9eee1

Please sign in to comment.