Skip to content

[CQT-190] [Infra] Add clang-tidy #18

[CQT-190] [Infra] Add clang-tidy

[CQT-190] [Infra] Add clang-tidy #18

Workflow file for this run

name: Linters
on:
push:
branches:
- develop
pull_request:
branches:
- develop
jobs:
cpp-linters:
name: "C++ linters"
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Build C++ tests (gcc/Linux/x64)
uses: ./.github/actions/cpp-tests
with:
build_type: Release
conan_profile_host: conan/profiles/tests-release-gcc-linux-x64
shell: bash
- name: Run C++ linters
uses: cpp-linter/cpp-linter-action@v2
id: linter
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
extensions: 'cpp,hpp'
style: 'file' # use .clang-format config file
tidy-checks: '' # use .clang-tidy config file
version: 18
- name: Fail fast
if: steps.linter.outputs.checks-failed > 0
run: |
echo "::notice::Try executing 'python3 ./scripts/run_cpp_linters.py .' to fix linter issues."
exit 1