Skip to content

Github Action for running C++ style check via Uncrustify

License

Notifications You must be signed in to change notification settings

coleaeason/actions-uncrustify

Use this GitHub action with your project
Add this Action to an existing workflow or create a new one
View on Marketplace

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

36 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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'

About

Github Action for running C++ style check via Uncrustify

Resources

License

Stars

Watchers

Forks

Packages

No packages published