summaryrefslogtreecommitdiff
path: root/.github/workflows/clang-format-lint.yml
blob: 70ae9863a0703e2fab5d2813afd7bae317389d52 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
name: clang-format-lint

on:
  push:
    paths:
      - "app/boards/**/*.c"
      - "app/include/**/*.h"
      - "app/src/**"
      - "app/drivers/**/*.c"
      - "app/drivers/**/*.h"
  pull_request:
    paths:
      - "app/boards/**/*.c"
      - "app/include/**/*.h"
      - "app/src/**"
      - "app/drivers/**/*.c"
      - "app/drivers/**/*.h"

jobs:
  build:
    runs-on: ubuntu-latest
    name: clang-format lint

    steps:
      - uses: actions/checkout@v2
      - uses: DoozyX/clang-format-lint-action@v0.9
        with:
          source: "./app"
          extensions: "h,c"