How to run postman newman with husky or webhooks

I need to auto run my newman prior to git commit with either husky or webhooks. If the test failed, then commit will fail. How do I achieve this? Thank you very much.

Would someone please help me? Thank you very much.

Would someone please help me? Thank you very much.

Hi @Hoang_Nguyen459 - closing this question since it appears like a duplicate. If it’s not a duplicate, feel free to ask again and provide additional context.