How to do M&A (analysis) on deals?

I have no experience in M&A. What do you look for? What is the process you undergo to see if it is a good business? Any resources shared would be helpful as well.