Separate build of server and testing of the service?

Hi!

Currently I use Gitlab CI to build multiple containers :

  • 1 for a database (mongodb)
  • 1 for an API (Nodejs / Express)
  • 1 for a front web (Angular)
  • 1 for a front mobile (Flutter)

Once my API is up, i launch a bunch of unit tests for every client. The thing is : I do all of this on one single pipeline. I feel that i’m no doing this the right way.

Would it be possible to build the server on one pipeline, and then launch the unit tests for the 2 clients in 2 other pipelines ?

I’ve search for this online, but i’ve only found things with artifacts, which is not helping me :frowning:

Thanks a lot for your answers :slight_smile: