The trials are most certainly accelerated. Take a look at Moderna's trial of their RNA vaccine.[1]
It's a 2 year trial, but data is collected on a rolling basis. They aren't waiting 2 years for final results, I'm guessing they do a few interim analyses until they see the two arms split in terms of infection rate. Then they'll go to the FDA and see if that's sufficient for approval.
And look at the N-size. 30,000 people for a drug that will be given (potentially) to billions of people. To make a comparison, Gardasil, the HPV vaccine was tested in ~28,000 individuals over 3-4 years.[2] And Gardasil is used in a much more limited population than the Covid vaccine will be.
[1]https://clinicaltrials.gov/ct2/show/NCT04470427?term=mRNA-12... [2]https://www.fda.gov/files/vaccines,%20blood%20&%20biologics/...