In my environment, all Pull Requests are deployed automatically as Heroku Review Apps. What I’d like to do is to run tests from GitHub Actions when the deployment finishes and have those tests as a “status check” in GitHub so that PRs cannot be merged if the tests fail.
I thought I’d be able to use “deployment_status” (as that’s triggered by Review Apps) as the workflow trigger for a GitHub Action that would test the deployed app. However, when I use “deployment_status” , the action is correctly triggered and the tests run but that run is not associated as a Check in my open PR, so I can’t see the results from the PR and much less block merge depending on the result of the tests.
Is there any way to achieve what I want to do? It seems to be quite a normal requirement and the deployment is correctly linked to the PR on GitHub, so hopefully I am just missing something and it is not difficult to implement.