Does living on campus in another state make me a non resident?

I live in Minnesota but go to school in Illinois and have a job there as well does that make me a non-resident or a resident when filing taxes in Illinois?