2020-11-28 01:57:22 +11:00
|
|
|
name: Clang Format
|
2020-09-11 05:02:37 +10:00
|
|
|
|
|
|
|
on:
|
|
|
|
push:
|
|
|
|
paths:
|
2020-11-29 06:18:18 +11:00
|
|
|
- ".github/workflows/clang-format-lint.yml"
|
2020-09-11 05:02:37 +10:00
|
|
|
- "app/boards/**/*.c"
|
|
|
|
- "app/include/**/*.h"
|
|
|
|
- "app/src/**"
|
2020-10-02 01:31:02 +10:00
|
|
|
- "app/drivers/**/*.c"
|
|
|
|
- "app/drivers/**/*.h"
|
2020-09-11 05:02:37 +10:00
|
|
|
pull_request:
|
|
|
|
paths:
|
2020-11-29 06:18:18 +11:00
|
|
|
- ".github/workflows/clang-format-lint.yml"
|
2020-09-11 05:02:37 +10:00
|
|
|
- "app/boards/**/*.c"
|
|
|
|
- "app/include/**/*.h"
|
|
|
|
- "app/src/**"
|
2020-10-02 01:31:02 +10:00
|
|
|
- "app/drivers/**/*.c"
|
|
|
|
- "app/drivers/**/*.h"
|
2020-09-11 05:02:37 +10:00
|
|
|
|
|
|
|
jobs:
|
|
|
|
build:
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
|
|
- uses: actions/checkout@v2
|
2021-10-25 16:06:35 +11:00
|
|
|
- uses: DoozyX/clang-format-lint-action@v0.13
|
2020-09-11 05:02:37 +10:00
|
|
|
with:
|
|
|
|
source: "./app"
|
|
|
|
extensions: "h,c"
|