Skip to content

Commit

Permalink
ci: use clang-format to check for formatting errors
Browse files Browse the repository at this point in the history
  • Loading branch information
Alberto Ruiz committed Feb 14, 2024
1 parent aadb06b commit 3a6a082
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion .github/workflows/linux.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,10 +29,11 @@ jobs:
image: fedora:rawhide
steps:
- uses: actions/checkout@v4
- run: dnf -y install ninja-build meson libwebp-devel gdk-pixbuf2-devel valgrind clang clang-analyzer
- run: dnf -y install ninja-build meson libwebp-devel gdk-pixbuf2-devel valgrind clang clang-analyzer clang-tools-extra
- run: mkdir build
- run: meson build
- run: ninja -C build
- run: ninja -C build scan-build
- run: meson test -C build --print-errorlogs
- run: meson test -C build --wrapper 'valgrind --leak-check=full --error-exitcode=1'
- run: clang-format --Werror -n *.[ch] tests/*.[ch]

0 comments on commit 3a6a082

Please sign in to comment.