Gitlab CI:run app and then run tests against it, exit when tests are done

Hy, I’m beginner and only at my company that cares about CI, but currently I’m stuck on a problem. I want to set up CI for our nodejs app. How could I run our app(it’s processing data - nodejs), then run unit test and shut down app when tests are done. I was thinking something about nohup but seems just too ugly…there must be better way, right? Another issue is that I would like to run app in docker container.

Hi @dockerFan - You might check out the example nodejs project that has a test stage in the gitlab-ci.yml and may provide some guidance.