Skip to content

Commit

Permalink
fix: correctly track check state for checkly-trigger
Browse files Browse the repository at this point in the history
  • Loading branch information
clample committed Jul 24, 2024
1 parent 440b851 commit 1a66f54
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions packages/cli/src/commands/trigger.ts
Original file line number Diff line number Diff line change
Expand Up @@ -126,6 +126,9 @@ export default class Trigger extends AuthCommand {
runner.on(Events.RUN_STARTED,
(checks: Array<{ check: any, checkRunId: CheckRunId, testResultId?: string }>, testSessionId: string) =>
reporters.forEach(r => r.onBegin(checks, testSessionId)))
runner.on(Events.CHECK_INPROGRESS, (check: any, checkRunId: CheckRunId) => {
reporters.forEach(r => r.onCheckInProgress(check, checkRunId))
})
runner.on(Events.CHECK_SUCCESSFUL, (checkRunId, _, result, links?: TestResultsShortLinks) => {
if (result.hasFailures) {
process.exitCode = 1
Expand Down

0 comments on commit 1a66f54

Please sign in to comment.