additional tasks by Krivoruchko Dmitry #178
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 | |
# You can be more specific, but it currently only works on pull requests | |
on: [pull_request] | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
# Optionally generate compile_commands.json | |
- uses: ZedThree/clang-tidy-review@v0.19.0 | |
with: | |
apt_packages: libgtest-dev | |
clang_tidy_version: 18 | |
clang_tidy_checks: '-*,performance-*,bugprone-*,clang-analyzer-*,cppcoreguidelines-*,mpi-*,misc-*,-cppcoreguidelines-avoid-non-const-global-variables,-cppcoreguidelines-avoid-magic-numbers,-clang-diagnostic-error,-misc-no-recursion,-cppcoreguidelines-owning-memory,-bugprone-narrowing-conversions,-bugprone-easily-swappable-parameters,-misc-non-private-member-variables-in-classes,-cppcoreguidelines-pro-bounds-pointer-arithmetic,-cppcoreguidelines-special-member-functions,-cppcoreguidelines-init-variables,-misc-include-cleaner' | |
split_workflow: true | |
# Uploads an artefact containing clang_fixes.json | |
- uses: ZedThree/clang-tidy-review/upload@v0.19.0 | |
id: upload-review | |
# If there are any comments, fail the check | |
- if: steps.review.outputs.total_comments > 0 | |
run: exit 1 |