-
Notifications
You must be signed in to change notification settings - Fork 0
35 lines (31 loc) · 732 Bytes
/
lint.yml
File metadata and controls
35 lines (31 loc) · 732 Bytes
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
name: Lint C++ code
on:
push:
branches:
- master
pull_request:
workflow_dispatch:
permissions:
contents: none
jobs:
lint:
name: clang-format (${{ matrix.path }})
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
path:
- examples
- include
- src
- test
permissions:
contents: read
steps:
- name: Check out code
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
- name: clang-format Check
uses: jidicula/clang-format-action@3a18028048f01a66653b4e3bf8d968d2e7e2cb8b # v4.17.0
with:
clang-format-version: 20
check-path: ${{ matrix.path }}