Skip to content

Commit

Permalink
Making sure we do a clang-format dry run with errors
Browse files Browse the repository at this point in the history
  • Loading branch information
matheusgomes28 committed Oct 8, 2024
1 parent 70e3175 commit efa4774
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion .github/workflows/cmake-single-platform.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,12 +16,17 @@ jobs:
runs-on: ubuntu-latest
container:
image: mattgomes28/jammy-cpp:0.0.0
options: --user 1001

steps:
- uses: actions/checkout@v4

- name: Run clang format
run: ./cpp-lint.sh
run: |
git ls-files "*.cpp" > format-files
git ls-files "*.hpp" > format-files
git ls-files "*.h" > format-files
clang-format -Werror --dry-run --files=format-files
- name: Configure CMake
run: cmake . --preset "unix-deb-ninja"
Expand Down

0 comments on commit efa4774

Please sign in to comment.