Skip to content

Commit 17acd34

Browse files
authored
Add format check to actions (#111)
1 parent 714e3b5 commit 17acd34

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

.github/workflows/cmake.yml

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,7 @@ jobs:
5050
sudo apt update
5151
# These aren't available or don't work well in vcpkg
5252
sudo apt install openssl libssl-dev
53+
sudo apt install dos2unix
5354
5455
- name: install gtest
5556
run: |
@@ -85,4 +86,10 @@ jobs:
8586
# See https://cmake.org/cmake/help/latest/manual/ctest.1.html for more detail
8687
run: |
8788
cd build
88-
make test
89+
make test
90+
91+
- name: Lint
92+
if: matrix.os == 'ubuntu-20.04'
93+
working-directory: ${{env.GITHUB_WORKSPACE}}
94+
shell: bash
95+
run: ./format.sh && git diff --exit-code

0 commit comments

Comments
 (0)