Skip to content

Github action for executing static analysis of clang-tidy

License

Notifications You must be signed in to change notification settings

kimhyungrok/clang-tidy-action

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

clang-tidy-action

This action is for executing static analysis on your repository using by clang-tidy. You can check defects in Files changed tab of Pull Request.

Inputs

exclude

Optional keyword for excluding check

pre-command

Optional pre-command which is executed before running clang-tidy

Example usage

name: Static-Analysis

on:  
  push:
    branches: [ master ]
  pull_request:
    branches: [ master ]

jobs:
  hello_world_job:
    runs-on: ubuntu-latest
    steps:
    - name: checkout repo
      uses: actions/checkout@v2
    - name: run clang-tidy-action
      uses: kimhyungrok/clang-tidy-action@v1.1
      with:
        exclude: "externals"
        pre-command: "echo hello"