Skip to content

Commit

Permalink
Disable clang-format action until it actually passes
Browse files Browse the repository at this point in the history
Ref #22
  • Loading branch information
Tectu committed Jul 9, 2021
1 parent df54240 commit 6d67128
Showing 1 changed file with 25 additions and 0 deletions.
25 changes: 25 additions & 0 deletions .github/workflows/clang-format.yml.disabled
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
name: clang-format check

on:
pull_request:
push:

jobs:
check-fmt:
runs-on: ubuntu-latest
name: "clang-format"
if: "!contains(github.event.head_commit.message, '[skip lint]')"
steps:
- uses: actions/checkout@v2
with:
fetch-depth: 0
- name: Run clang-format
run: |
# This magic invocation to find will:
# - list every file ending in .hpp or .cpp recursively in
# - ./lib
# - ./test
# unless the path contains a directory named 3rdparty in it
find ./lib ./test -type d -name "3rdparty" -prune -false -o -type f -iname "*.cpp" -o -iname "*.hpp" -print0 | xargs -0 clang-format --style=file -Werror --dry-run


0 comments on commit 6d67128

Please sign in to comment.