Skip to content

ci: introduce GitLab rules to only run tests and linting when relevant files have been changed

Niels requested to merge review/1668-changes-syntax into master

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

  1. Ensure the directory UI tests fail
  2. Push to origin and wait until the pipeline completed (with failing job for Directory UI tests)
  3. Add change to file unrelated to the directory (eg. to the Management UI).
  4. 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

Merge request reports