How do I fail or pass a status check based upon dotnet test in github status check?

Viewed 11

I have a project using .NET backend with C#. I am using NUnit for backend integration testing. So far I have a github action setup to run the test and check for failing or passing tests upon each push (later to become upon each pr). The issue is that I wish to prevent the merge or reject a PR (or push in this case) from actually deploying unless all tests pass. I have gone down several paths and cannot find a solid functional way to perform this. I do NOT have my app registered through github. It is registered through Azure but github is where the repos/branch management takes place. I believe because of this I can do nothing with 'status' and only checks. I cannot perform prerecieve hooks as I do not have github enterprise. I have a functional github action which runs the tests and gives results to a .dll file somewhere. Any help would be amazing!

0 Answers
Related