Code style enforcing #18
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: clang-tidy-review | |
on: [pull_request] | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
with: | |
submodules: 'true' | |
# Ideally we would want to run the clang-tidy for every kind of build. | |
# This would make shure that we will check all platform dependent code parts. | |
# Here we only test the standard linux build. | |
- uses: ZedThree/[email protected] | |
id: review | |
with: | |
split_workflow: true | |
config_file: '.clang-tidy' | |
cmake_command: 'cmake . && make -j2' | |
- uses: ZedThree/clang-tidy-review/[email protected] | |
id: upload-review | |
- if: steps.review.outputs.total_comments > 0 | |
run: exit 1 |