Monorepo support for both root and sub-dirs

We are currently running a PoC with SonarCloud and have the following question around Monorepo support.

Is there an easy way to configure a root project and sub-dirs while having them all as separated sonar projects and analyzed respectively, without the need to create Github actions for each one as described here (monorepo/.github/workflows at master · martinbdz-test/monorepo · GitHub)

e.g.
/root
sonar-project.properties
/sub-dir-a
sonar-project.properties
/sub-dir-b
sonar-project.properties

In the above example, have a single Github action that will scan the projects that have been changed in the pull request.
(meaning root is always scanned and optionally a few of the sub dirs)

Thanks

Hey there. There is not a way without specifying multiple actions.

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.