Originally Posted by
Player's Handbook p. 171
Attacks: Some spell descriptions refer to attacking. For instance, invisibility is dispelled if you attack anyone or anything while under its effects. All offensive combat actions, even those that don’t damage opponents (such as disarm and bull rush) are considered attacks. Attempts to turn or rebuke undead count as attacks. All spells that opponents resist with saving throws, that deal damage, or that otherwise harm or hamper subjects are attacks. Summon monster I and similar spells are not attacks because the spells themselves don’t harm anyone.