Skip to content

Commit

Permalink
Add clang-format
Browse files Browse the repository at this point in the history
  • Loading branch information
jfantinhardesty committed Jun 7, 2024
1 parent 8e805bc commit ef57a6a
Showing 1 changed file with 19 additions and 0 deletions.
19 changes: 19 additions & 0 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
name: Linting with Clang-format

on:
push:
branches: [ "main", "add-lint-github-action" ]
pull_request:
branches: [ "main" ]

jobs:
build:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v4

- name: Run clang-format
run: |
find ./samples/cloudfuse_plugin/ -iname '*.h' -o -iname '*.cpp' | xargs clang-format -i --dry-run --Werror
find ./samples/unit_tests/ -iname '*.h' -o -iname '*.cpp' | xargs clang-format -i --dry-run --Werror

0 comments on commit ef57a6a

Please sign in to comment.