Listing runs
GET /repos/{owner}/{repo}/actions/runs returns workflow_runs, newest first, and accepts filters such as branch, event and status. Each run has status (for example queued, in_progress or completed) and, once complete, a conclusion such as success, failure, cancelled or timed_out.
Combine with test results
A workflow run tells you whether CI passed; it doesn't say which tests failed. Have the workflow upload its test report to your backend, tagged with the run id, and merge the two into one Run with counts. See the JUnit XML and Playwright guides.