-
Notifications
You must be signed in to change notification settings - Fork 0
39 lines (39 loc) · 969 Bytes
/
formatting.yaml
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
30
31
32
33
34
35
36
37
38
39
name: Formatting
on:
# run for all pull requests
# Run for all commits on feature branches
push:
paths:
- 'firmware/**'
- 'dsp/**'
- 'plugin/**'
- '.github/workflows/**'
pull_request:
paths:
- 'firmware/**'
- 'dsp/**'
- 'plugin/**'
- '.github/workflows/**'
jobs:
###############################################################################
# checks the formatting with clang-format
formatting-check:
name: Formatting Check
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
path:
- 'firmware/src'
- 'firmware/tests'
- 'dsp/src'
- 'dsp/tests'
- 'plugin/src'
- 'plugin/tests'
steps:
- uses: actions/checkout@v2
- name: Run clang-format style check for C/C++ programs.
uses: jidicula/[email protected]
with:
clang-format-version: '11'
check-path: ${{ matrix.path }}