Runs an uncrustify config against C++ implementation and header files in a given repo.
The script looks for the following file endings:
- .cpp
- .cxx
- .h
- .hpp
Only runs on files that have been added or modified in a given commit.
Basic:
on: [ pull_request ]
jobs:
cpp_style_check:
runs-on: ubuntu-latest
name: Check C++ Style
steps:
- name: Checkout this commit
uses: actions/checkout@v2
- name: Run style checks
uses: coleaeason/actions-uncrustify@v1
Use a specific configuration file via input:
on: [ pull_request ]
jobs:
cpp_style_check:
runs-on: ubuntu-latest
name: Check C++ Style
steps:
- name: Checkout this commit
uses: actions/checkout@v2
- name: Run style checks
uses: coleaeason/actions-uncrustify@v1
with:
configPath: 'myConfig.cfg'