Skip to content

Latest commit

 

History

History
44 lines (37 loc) · 964 Bytes

README.md

File metadata and controls

44 lines (37 loc) · 964 Bytes

Uncrustify C++ Github Action

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.

Example configurations

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'