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?
So, recapitulating, we have actions of $G$ on $X$ and $Y$. This induces an action of $G$ on $S=\{f:X\longrightarrow Y\}$ by setting $$(g\cdot f)(x)=g\cdot f(g^{-1}\cdot x)$$ On the other hand, a function $f\in S$ is said to be equivariant provided $$f(g\cdot x)=g\cdot f(x) \quad \forall g\in G$$ Taking $x=g^{-1}\cdot x^{*}$ in this last expression yields $$f(x^{*})=g\cdot f(g^{-1}\cdot x^{*})=(g\cdot f)(x^{*})$$ Thus, a function $f\in S$ will be equivariant if and only if $f=g\cdot f$ for all $g\in G$, i.e., if it is $G$-invariant under the above defined action of $G$ on $S$.