Pregnancy after Breakup

Omg I am currently going through it , my boyfriend broke up with me a few weeks ago and today I found out that I am pregnant after I went to the doctor because of my chest pains . What should I do ? How should I tell him ?