diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml index 7fbfeaa3..9d3640ce 100644 --- a/.github/workflows/lint.yml +++ b/.github/workflows/lint.yml @@ -30,3 +30,11 @@ jobs: - run: | black --version black --check --diff . + clang-format: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v2 + - run: sudo apt-get install clang-format + - run: | + clang-format -style="{IndentWidth: 4}" --dry-run --Werror -i *.{c*,h*,H} + working-directory: pintool