It's highly unlikely that the squeak is coming from a shock absorber. More likely a rubber part or a shield flapping around.
In my humble opinion, shock absorbers are one of the more oversold items around. People that advocate replacing them regularly are the ones making money off them. Rarely, if ever, does one "wear out". They may leak due to nicks from rocks hitting the shaft or dirt wearing through the seal. This is why there is typically a boot over that part.
True, the "real" way to test a shock absorber is on a shock dyno. These beasties are rare!! I've only ever seen one and that was in the Koni trailer at a Can-Am race at Lime Rock.

Twenty some years ago.

The vast majority of us settle for the old jump on the fender routine. Pulling it off the car and running in in & out by hand is a waste of time. Hulk Hogan isn't strong enough to move that piston fast enough.
My opinion: if it hasn't leaked, it doesn't need replacing. OTOH I've seen some that all the juice leaked out of so long ago, that the shock was dry again. Turn it upside down & the piston would fall to the other end. Its mate on the opposite side of the same car, was fully functional. They both got replaced.