Should I leave him?

Sarah

So I've been with my boyfriend for almost 3 years now. He's cheated on me before and sometimes he gets in this mood where he just wants to be single and party and have fun for a few weeks and then we get back together. We also live together. But lately, he doesn't text me during the day, doesn't answer my calls, he never compliments me, rarely tells me he loves me, goes straight to sleep when he gets home from work, he doesn't even ask how my day was, we barely talk. I don't know what to do anymore. ☹️