Skip to content

arkedge/action-clang-tidy

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

72 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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