From cd0d9e028bb5b7d1ab551f8621eaf77ebe2313a7 Mon Sep 17 00:00:00 2001 From: louib Date: Sat, 28 Dec 2019 13:15:02 -0500 Subject: [PATCH] Activate temp code format checks. --- .github/workflows/ci.yml | 4 +++- .github/workflows/ci_ubuntu-16.04.yml | 4 +++- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 28a1d1b..788eff3 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -20,5 +20,7 @@ jobs: - name: compiling run: make # Changing the path should no longer be necessary when clang-format6 is installed. - # - name: verifying code style + - name: verifying code style + # TODO use check-format when all the code has been formatted. # run: export PATH=$PATH:/usr/lib/llvm-5.0/bin && make check-format + run: export PATH=$PATH:/usr/lib/llvm-5.0/bin && clang-format -i -style=file src/nwipe.c src/nwipe.h src/options.c src/options.h && git diff-index --quiet HEAD diff --git a/.github/workflows/ci_ubuntu-16.04.yml b/.github/workflows/ci_ubuntu-16.04.yml index a8870a6..2021f9e 100644 --- a/.github/workflows/ci_ubuntu-16.04.yml +++ b/.github/workflows/ci_ubuntu-16.04.yml @@ -20,5 +20,7 @@ jobs: - name: compiling run: make # Changing the path should no longer be necessary when clang-format6 is installed. - # - name: verifying code style + - name: verifying code style + # TODO use check-format when all the code has been formatted. # run: export PATH=$PATH:/usr/lib/llvm-5.0/bin && make check-format + run: export PATH=$PATH:/usr/lib/llvm-5.0/bin && clang-format -i -style=file src/nwipe.c src/nwipe.h src/options.c src/options.h && git diff-index --quiet HEAD