Skip to content

Commit 9b442b0

Browse files
committed
Add CI job for clang-format checks
1 parent b842860 commit 9b442b0

1 file changed

Lines changed: 10 additions & 0 deletions

File tree

.github/workflows/static-code-analysis.yml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,3 +25,13 @@ jobs:
2525
run: sudo apt-get -qq -y install cppcheck
2626
- name: Run Cppcheck
2727
run: cppcheck src/ -j $(nproc) --force --inline-suppr --library=qt --error-exitcode=1 --template="::{severity} file={file},line={line},col={column}::{message}" ${{ env.extra-args }}
28+
clang-format:
29+
name: clang-format
30+
runs-on: ubuntu-latest
31+
steps:
32+
- uses: actions/checkout@v4
33+
- name: Run clang-format
34+
run: |
35+
cmake -S . -B build
36+
cd build
37+
make clang-format-check

0 commit comments

Comments
 (0)