ci: introduce GitLab rules to only run tests and linting when relevant files have been changed
10 jobs will now only be triggered if relevant files have been modified.
Experiment how to improve the GitLab pipeline duration using rules:changes
syntax.
Attempt to reduce the amount of runner minutes being consumed.
Previous scenario (without compare_to) which did not work
- Ensure the directory UI tests fail
- Push to origin and wait until the pipeline completed (with failing job for Directory UI tests)
- Add change to file unrelated to the directory (eg. to the Management UI).
- Push to origin and wait until the pipeline completed
Expected: pipeline should fail, because of incorrect Directory UI test Actual: pipeline succeeds, because directory UI test job is not executed
Edited by Niels