Debian Codegraph @

third_party/upb/.github/workflows/clang_format.yml

raw
1 name: Check ClangFormat
2
3 on:
4 push:
5 branches:
6 - main
7 pull_request:
8 branches:
9 - main
10 workflow_dispatch:
11
12 jobs:
13 check_clang_format:
14 runs-on: ubuntu-20.04
15 steps:
16 - uses: actions/checkout@v2
17 - name: Run ClangFormat
18 run: find . | grep -E '\.(c|h|cc)$' | grep -E -v '^./(third_party|cmake)' | xargs clang-format -i
19 - name: Check for differences
20 run: git diff --exit-code