Skip to content

Commit

Permalink
..
Browse files Browse the repository at this point in the history
  • Loading branch information
roblesterjr04 committed Jan 10, 2024
1 parent b46e94d commit ce7a879
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
2 changes: 2 additions & 0 deletions src/Checks/Checks/GitHubActionsCheck.php
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,8 @@ public function run(): Result
}

if ($run['conclusion'] == 'failure') return $result->failed();

return $result->ok();
}
}

Expand Down
3 changes: 2 additions & 1 deletion tests/GitHubTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ public function testTerminalCheck()
$this->assertInstanceOf('Lester\Health\Checks\Result', $result);
}

public function testPingRedirectCheck()
public function testGithubActions()
{

Http::fake([
Expand All @@ -41,6 +41,7 @@ public function testPingRedirectCheck()
],
[
'name' => 'Test Flow',
'status' => 'completed',
'conclusion' => 'failure'
]
]
Expand Down

0 comments on commit ce7a879

Please sign in to comment.