diff --git a/.github/workflows/cmake.yml b/.github/workflows/cmake.yml index ef45d147..1f3b778a 100644 --- a/.github/workflows/cmake.yml +++ b/.github/workflows/cmake.yml @@ -114,3 +114,9 @@ jobs: # Execute tests defined by the CMake configuration. # See https://cmake.org/cmake/help/latest/manual/ctest.1.html for more detail run: ./test.sh -t + + - name: Lint + if: runner.os == 'Linux' + working-directory: ${{env.GITHUB_WORKSPACE}} + shell: bash + run: ./format.sh && git diff --exit-code