States with an income tax can tax non-residents on income from work actually (physically) performed within their borders. However, you only need to file a non-resident state tax return if your income in that state exceeded its filing threshold for non-residents.
You can find a state's non-resident filing threshold on its state tax website.
Section 7 of Public Law 101-322 provides an exception for interstate truckdrivers and rail carrier employees, who are subject to income tax only by their legal state of residence.
https://www.govinfo.gov/content/pkg/STATUTE-104/pdf/STATUTE-104-Pg295.pdf
**Answers are correct to the best of my ability but do not constitute tax or legal advice.