From 66fbb33956e06a2a4bfba39aca571de1d2d3fe20 Mon Sep 17 00:00:00 2001 From: An Tao Date: Sat, 26 Dec 2020 14:39:38 +0800 Subject: [PATCH] Add format check to actions (#668) --- .github/workflows/cmake.yml | 6 ++++++ 1 file changed, 6 insertions(+) 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