mirror of
https://github.com/candle-usb/candleLight_fw.git
synced 2025-01-14 05:42:53 +08:00
17a7fe8445
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>
19 lines
382 B
YAML
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'
|