CI: enforce clang-tidy tests
Some clang-tidy tests should be automatically run as requirement before any merge.
The current selection of obligatory tests is in .clang-tidy
(the wider selection has been relegated to .clang-tidy.full
).
Currently, clang-tidy
can only be run through commands cmake -DBA_TIDY etc; ninja
. There is no way to provide different configurations, and no way to obtain the final error state. Options --config-file
and --warnings-as-errors
don't work as expected.
Also, I do not succeed to circumvent CMake and run clang-tidy by providing a compilation database.