summaryrefslogtreecommitdiff
path: root/.github/workflows/clang-format-lint.yml
blob: 375bcd4e5212aee7a87cea4dbf3b20f0597534f8 (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

on:
  push:
    paths:
      - ".github/workflows/clang-format-lint.yml"
      - "app/boards/**/*.c"
      - "app/include/**/*.h"
      - "app/src/**"
      - "app/drivers/**/*.c"
      - "app/drivers/**/*.h"
  pull_request:
    paths:
      - ".github/workflows/clang-format-lint.yml"
      - "app/boards/**/*.c"
      - "app/include/**/*.h"
      - "app/src/**"
      - "app/drivers/**/*.c"
      - "app/drivers/**/*.h"

jobs:
  build:
    runs-on: ubuntu-latest
    steps:
      - uses: actions/checkout@v2
      - uses: DoozyX/clang-format-lint-action@v0.13
        with:
          source: "./app"
          extensions: "h,c"