Heat the oil in a pan. Briefly sauté the onion. Add the rice and sauté until translucent, stirring constantly. Gradually add the stock, stirring frequently, so that the rice is always just covered with liquid, simmer for approx. 20 mins. until the rice is creamy and al dente. Mix the pesto and artichokes into the rice and heat gently.