Wiring – GFCI protection on a shower light

bathroom-fixtureswiring

drawing of how I have it wired - should this workI am adding a light/fan inside a shower. I would like to add GFCI protection. I have a standard circuit and thought I could simply take the line to a GFCI outlet, then take the load to the switch, switch to light. But when I do the GFCI won't work. I get no power to light or outlet. when I press the reset it immediately trips.

Switch is a standard switch where the hot load from GFCI is going to bottom on the switch and the top black is going to the light. White wires from light and load from GFI are twisted and capped. Ground wires from GFCI and light are twisted.

Best Answer

The diagram above is nearly correct and when I wired it that way the light AND connected the ground to the ground on the switch (rather than capping it) it worked and when I tested the GFI the light went out.. thanks.