Note: fork of coleaeason/actions-uncrustify, changes it to format C# instead.
Runs an uncrustify config against C# implementation and header files in a given repo.
The script looks for the following file endings:
- .cs
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: mibmo/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: mibmo/actions-uncrustify@v1
with:
configPath: 'myConfig.cfg'