What is the distance from the transormer to the shed with the compressor? And, is the run primarily copper or aluminum?
Take the total distance and the starting load, which maybe as much as 2.5x the running load of 23amps, then use the voltage drop table in the NEC code book. Chances are you...