Preheat oven to 400 degrees F.
Bring a large pot of water to a boil and salt generously. Add green beans and cook for 5 minutes, then drain and place in an ice water bath to stop cooking. Drain and set aside.
Prepare the sauce in a large oven-safe skillet over medium heat. Add butter or olive oil and shallots and garlic. Season with salt and pepper and stir. Cook for 2-3 minutes, then add mushrooms and season with a bit more salt and pepper. Cook for 3-4 minutes more or until lightly browned.
Sprinkle in flour and whisk to stir and coat the veggies. Cook for 1 minute, then slowly add in veggie stock, whisking to incorporate.
Add almond milk and whisk to stir again. Season with a touch more salt and pepper and bring to a simmer, then reduce heat to low to thicken. Cook for 5-7 minutes more, or until thick and bubbly. Taste and adjust seasonings as needed.
Remove from heat and add 1/2 of the fried onions and all of the cooked green beans. Toss to coat well, and top with remaining fried onions.
Bake in oven for 15 minutes or until warmed through, bubbly and slightly browned on top.
Serve immediately (handle pan carefully).