Skip to content

Commit

Permalink
update action
Browse files Browse the repository at this point in the history
  • Loading branch information
loganzartman committed Jan 28, 2021
1 parent bf53b35 commit 7fc2c93
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 0 deletions.
8 changes: 8 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,3 +9,11 @@ jobs:
with:
submodules: recursive
- run: scripts/ci-test.sh
check-format:
name: Check formatted
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
with:
submodules: recursive
- run: make check-format
4 changes: 4 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,10 @@ clean:
format:
clang-format --style=file -i src/**.cpp src/**.hpp

.PHONY: check-format
check-format:
diff -u <(cat src/**.cpp src/**.hpp) <(clang-format --style=file src/**.cpp src/**.hpp)

build/client: build/Makefile
(cd build; make -j)

Expand Down

0 comments on commit 7fc2c93

Please sign in to comment.