Controlling Build Scope for Dependent Projects in Pull Request Builds #1706
-
We are using a single repository with multiple AL projects and have
When we make a change to Project B, only Project B is built during the Pull Request Build, which works as expected. However, when we change Project A, both A and B are built, even though Project B wasn’t modified directly. Question: |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 3 replies
-
Today, that is only possible by splitting the apps into 2 repositories |
Beta Was this translation helpful? Give feedback.
-
Yes, I understand the need for that but I'm trying to bypass it. |
Beta Was this translation helpful? Give feedback.
-
You can definitely set doNotRunTests on some workflows and not others. |
Beta Was this translation helpful? Give feedback.
The current design of AL-Go is that every CI/CD build is tested and can be released. By running a mode, where apps are built if they are modified and not if dependencies have changed, would cause the latest build to be "maybe" OK.
You would basically have to run a full build before releasing - which is against the current design.
Recommendation for a scenario like yours would be to split the repo in two and use GitHub packages for dependency resolution.