There's a link to the current travel rules below...
Basically, at the moment, you need to do a travel form saying where you're staying and either:
a) prove you're fully vaccinated
b) have a negative test
BUT the travel rules are VERY likely to change (they've become more relaxed during the last 2 summers) so we'll keep an eye on them and update this bit as/ when they do.
In normal life, you're supposed to wear a mask on public transport but it's not a rule to wear one anywhere else now.
Check this website with all the latest information: www.spth.gob.es