What are the residency requirements for a divorce and a legal separation?

There are no residency requirements for a legal separation. 

No dissolution of marriage shall be granted unless one of the parties has resided in the State of Minnesota for not less than 180 days immediately preceding the commencement of the divorce action.