Skip to content

Commit

Permalink
Check and reset process.exitCode after core.setFailed()
Browse files Browse the repository at this point in the history
Signed-off-by: Christophe Bedard <christophe.bedard@apex.ai>
  • Loading branch information
christophebedard committed May 14, 2024
1 parent 8bbda20 commit 302a780
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions __tests__/ros-ci.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,9 @@ describe("validate distribution test", () => {
expect(actionRosCi.validateDistros("", "bouncy")).toBe(false);
expect(actionRosCi.validateDistros("apples", "bananas")).toBe(false);
expect(actionRosCi.validateDistros("apples", "rolling")).toBe(false);
// Check and reset process exit code, which is set when core.setFailed() is called
expect(process.exitCode).toBe(core.ExitCode.Failure);
process.exitCode = core.ExitCode.Success;
});
});

Expand Down

0 comments on commit 302a780

Please sign in to comment.