Skip to content

Latest commit

 

History

History
27 lines (22 loc) · 614 Bytes

README.md

File metadata and controls

27 lines (22 loc) · 614 Bytes

GitHub Actions: Run clang-tidy with reviewdog

This action runs clang-tidy with reviewdog.

Example Usage

name: Build & clang-tidy
on: [pull_request]

jobs:
  build:
    runs-on: ubuntu-latest

    steps:
    - uses: actions/checkout@v3
    - name: CMake
      env:
        CC: clang
      run: cmake -B ./build -DCMAKE_EXPORT_COMPILE_COMMANDS=ON
    - name: reviewdog with clang-tidy
      uses: arkedge/action-clang-tidy
      with:
        workdir: ./build
    - name: Build
     run: cmake --build ./build