Skip to content

CI: fix skip tests for doc only changes

Benoit Formet requested to merge fix-ci-skip-for-doc-changes into master

During a merge request, do not run tests when all changes concern doc files.

Previously the tests were skipped as soon as the last push was about the doc, excluding older commits, which could lead to situations were the merge request was marked "green" (pipeline success) but the tests were not run.

I did this by splitting the run_tests job into two:

  • one for merge requests only
  • one for branches only (excluding merge requests)

Current behavior is:

The tests suite is ran once each time we push or merge into a branch, or each time we create or update a merge request (preventing two tests jobs in this case).

Edited by Benoit Formet

Merge request reports