zyborg / dotnet-tests-report

GitHub Action to run .NET Core tests and generate report attached to Workflow Run
MIT License
112 stars 36 forks source link

Make a job fail if tests fail #23

Closed DaanAcohen closed 3 years ago

DaanAcohen commented 3 years ago

If tests fail, next jobs (such as deployment) should not start. Therefore, if a unit test fails, the whole job needs to fail. I need an option to achieve this.

KrasnovPavel commented 3 years ago

Looks like there is an option you are looking for: https://github.com/zyborg/dotnet-tests-report/blob/237826dc017f02ebf61377af95d1a12f8409a527/action.yml#L138

ebekker commented 3 years ago

Correct, thanks @KrasnovPavel! Please make sure you're using a recent version of this Action to leverage this feature.