Skip to content

Commit

Permalink
Add Github Actions for clang-format (#13)
Browse files Browse the repository at this point in the history
  • Loading branch information
dmohns authored Feb 29, 2024
1 parent e2b68e1 commit a57718a
Showing 1 changed file with 21 additions and 0 deletions.
21 changes: 21 additions & 0 deletions .github/workflows/check.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
# Project-specific checks to ease collaboration:
# - language or project specific linters and linting rules
# - unit or integration tests
name: Check

on:
push:
branches:
- main
pull_request:
branches:
- main

jobs:
clang-format:
name: Lint clang-format
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Run clang-format lint
run: find . \( -name '*.[ch]pp' -o -name '*.h' \) | xargs clang-format --verbose --style=file -n --Werror

0 comments on commit a57718a

Please sign in to comment.