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

Commit

Permalink
Merge pull request #30 from education/set-failure-on-error-case
Browse files Browse the repository at this point in the history
Set failure if the test errors out
  • Loading branch information
ashishkeshan authored Apr 16, 2024
2 parents 85da803 + 2f9eee1 commit 1a54efb
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 1a54efb

Please sign in to comment.