This is a quick example of how to handle CI pipelines for a multi-module project. It is illustrated with Scala/Maven simple project, but, of course, the idea could be implemented in other languages/package managers.
For more details, check this article : https://waliding.medium.com/an-example-of-multi-module-gitlab-ci-pipeline-eae42128f59f