Whelan Machine & Tool is investing nearly $5.7 million to expand its Louisville, Kentucky operations, creating 30 new jobs.