Skip to content

Docs pipeline incremental tests

Marcel Amirault requested to merge docs-pipeline-incremental-tests into master

Run docs tests (Vale and markdownlint) only on the specific docs that were changed in an MR.

This makes use of CI Variables only available in merged results pipelines, so will not work on draft MRs (which use "merge request (detached)" pipelines).

Adds a check to see what kind of pipeline is running, and then sets the files to test. If it's a merge request pipeline, tests all files. If it's a merged results pipeline, tests only changed markdown files.

  • In draft MRs: 1 minute or more to test.
  • In merged results pipelines: 1 second or so!

Related to #238992 (closed)

Edited by Marcel Amirault

Merge request reports