If $S$ is a set of functions from $X$ to $Y$ then I can consider the action of a group $G$ on $S$ via its action on $X$ and $Y$ by the formula
$$(g \cdot f)(x) = g \cdot f(g^{-1} \cdot x),$$
So we are considering left actions both on $X$ and $Y$.
Then, the definition of equivariant map pops out but I don't really understand how it is related to previous statement.
An function $f: X \rightarrow Y$ is equivariant if it satisfies
$$f(g \cdot x) = g \cdot f(x) \, \, \, \, \forall g \in G.$$
What's happening here? Are we assuming that the group $G$ acts trivially on $Y$? How to get this definition from the previous statement?