If you lived in the U.S. for the other months of 2018, then what matters for your 2018 tax return is how much income you earned /received in 2018. The volunteer time spent in Canada does not affect that, nor do you need to enter anything about it on your tx return.
**Disclaimer: Every effort has been made to offer the most correct information possible. The poster disclaims any legal responsibility for the accuracy of the information that is contained in this post.**