Sometimes I have trouble deciding whether to read 行く【いく】 or 行う【おこなう】 since both have the same て-form, 行って
such as in this sentence
筆者【ひっしゃ】がときどき出勤前【しゅっきんまえ】にモーニングを食【た】べに行【い】っていた店【みせ】だ
It was a place where this author sometimes had the breakfast special before going to work.
https://www.yomiuri.co.jp/column/chottomae/20210421-OYT8T50057
(The reading above was generated by both j-talk.com and jisho.org)
Is it 行く【いく】 because it is associated with 食【た】べに (like in English, go to eat) or is it 行う【おこなう】 because one is performing the action of eating?
Which is correct?