chore: move jest-test and migration-check to prebuild stage
Resolve SOS-207
jest-test originally runs before "build" stage and not compatible with security scans which should run after "build" stage if they are all put together in "test" stage.
Therefore we are planning to add a new "prebuild" stage which place before "build", and put all jobs that need to be run before "build" stage in it.
To avoid interruption to actual commitments, duplicate a new .jest-test job and gradually update project CI to replace the old one.
Also, update migration-postgre-check to run at "prebuild" stage by default.
Edited by Tifa Choi