Skipping to build the most recent commit in the queue

I have some long running, expensive tests that I want to run on my project’s default branch, to run each job to completion with concurrency 1 and not to cancel redundant builds.

When the job completes, I want the next job to skip to the most recent job in the queue. Or enqueueing a new job removes all other jobs in the queue so there is only ever the single newest item in the queue.