Sun will shine for unimaginable time. Although Sun may not shine at a very remote future, for practical purposes, we may hold that Sun will shine ever.
The sun is a star, a vast sphere of luminous gas. It's light is a by-product of gas fueled nuclear reactions in its core. It shines steadily now, but in about five billion years it will swell up before dying as a cold dark cinder in space...