Add format check to actions (#668)

This commit is contained in:
An Tao 2020-12-26 14:39:38 +08:00 committed by GitHub
parent 4b5885e3c0
commit 66fbb33956
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 6 additions and 0 deletions

View File

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