Daniel Trevitz 17a7fe8445 Check code formatting on PR
Check the code formatting of a PR by looking up the files in git diff HEAD^
If the uncrustify config sees a change, yell about it.

Signed-off-by: Daniel Trevitz <daniel.trevitz@wika.com>
2022-10-15 22:48:05 -04:00

19 lines
382 B
YAML

name: PR
on: [ pull_request ]
jobs:
cpp_style_check:
runs-on: ubuntu-latest
name: Check C Styling
steps:
- name: Checkout this commit
uses: actions/checkout@v3
with:
fetch-depth: 2
- name: uncrustify check
uses: Daniel-Trevitz/uncrustify-check@v1
with:
configFile: 'uncrustify.cfg'
checkedPaths: 'src;include'