Browse Source

Add clang-format validation to CI

pull/2568/head
obligaron 5 years ago committed by Anders Jenbo
parent
commit
f5344bd722
  1. 21
      .github/workflows/clang-format-check.yml

21
.github/workflows/clang-format-check.yml

@ -0,0 +1,21 @@
name: clang-format check
on: [push, pull_request]
jobs:
formatting-check:
name: Formatting Check
runs-on: ubuntu-latest
strategy:
matrix:
path:
- 'Source'
- 'test'
steps:
- uses: actions/checkout@v2
- name: Run clang-format style check for C/C++ programs.
uses: jidicula/clang-format-action@v3.4.0
with:
clang-format-version: '11'
check-path: ${{ matrix.path }}
fallback-style: 'webkit'
Loading…
Cancel
Save