Stability conditions on $A_n$-singularities