Skip to content

Commit

Permalink
Add clang-format.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
Neved4 committed Jan 18, 2024
1 parent 849bb16 commit 8b8b098
Showing 1 changed file with 28 additions and 0 deletions.
28 changes: 28 additions & 0 deletions .github/workflows/clang-format.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
name: "Check Clang-Format"

on:
push:
branches: [ "main" ]
paths-ignore:
- '**/*.clang-format'
- '**/*.editorconfig'
- '**/*.gitattributes'
- '**/*.json'
- '**/*.md'
- '**/*.yml'
- '**/LICENSE'
pull_request:
branches: [ "main" ]
workflow_dispatch:

jobs:
clang-format-check:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4

- name: Check Clang-Format
uses: mrousavy/clang-format-action@v1
with:
clang-format-style-path: .clang-format

0 comments on commit 8b8b098

Please sign in to comment.