I'm trying to test Firestore's security rules on my GitLab CI pipeline. I need to run Firebase's emulator to accomplish that.
However, the Firebase emulator basically starts serving a "fake backend". So, how can I run that job in parallel to other jobs?
For example:
stages:
- emulator
- test
emulator:
- stage: emulator
script:
- firebase serve --only firestore
test:
- stage: test
script:
- yarn test
The test
stage is never reached as GitLab is serving the emulator
stage. Therefore, it never finishes.