To mix the dough, combine the milk, sunflower oil, egg yolk, flour and 1/2 teaspoon salt in a bowl. You can use an electric mixer or knead the dough by hand until it forms a smooth, stiff dough. Shape the dough into a log, wrap it in cling film and set aside.
Soak the dried porcini in 125ml hot water for 45 minutes. Meanwhile, cook the potatoes in boiling salted water to cover until tender, about 20 minutes. Drain and allow to steam dry for a minute or two.
Chop the rehydrated mushrooms, reserving the soaking liquid. Mash the potatoes, adding the mushroom-soaking liquid to moisten.
Heat the vegetable oil in a frying pan over medium heat. Stir in the chopped onions; cook and stir until the onion has softened and turned translucent, about 5 minutes. Stir in the chopped mushrooms.
Mix the mashed potatoes, onions and mushrooms; season with salt and pepper to taste. Set the filling aside while you roll out the dough.
Cut the dough into discs about 1cm thick and 5cm in diameter. Flatten or roll each disc on a lightly floured surface to make a thin circle. Drop the filling by tablespoonfuls into the centre of each circle; fold the dough in half and pinch the edge to seal. Repeat until all of the dumplings are filled.
Bring 3.75 litres water and tablespoon of salt to the boil in a large pot. Add the varenyky to the boiling water and stir once, gently. Simmer until all of the dumplings have floated to the surface, about 10 to 15 minutes. Drain well before serving.