Similar to the formatting check job, take advantage of the `clang-tidy`
configuration we just created to add a new job running this tool.
Running `clang-tidy` requires the following:
* build dependencies must be present on the system so it can resolve the
includes
* the build folder must be configured as it relies on the
`compile_commands.json` to get build flags (such as the include paths)
This could be run in the `build` job, but it would make it harder to
understand the actual underlying issue, so this is executed as a new,
separate job, re-using the artifacts from the `build` job.
The current pipeline (from Mobian) just doesn't work, we should get to
a more efficient, simpler one.
With the `clang-format` config now in place, this pipeline has 2 jobs:
* ensure the code is properly formatted
* run a test build to make sure it won't break