Formality for g-manifolds