Minor Illusion is not a bonus action. Its spell description states that it only has one casting action. Some events and effects, however, allow you to cast spells that normally require one action as bonus actions. For example, one of the Magic Surge options by the Wild Magic sorcerer.