-
-
Notifications
You must be signed in to change notification settings - Fork 43
35 lines (31 loc) · 682 Bytes
/
lint-cpp.yml
File metadata and controls
35 lines (31 loc) · 682 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++
on:
push:
branches:
- main
paths:
- ".github/workflows/lint-cpp.yml"
- "**/*.h"
- "**/*.hpp"
- "**/*.cpp"
- "**/*.c"
- "**/*.mm"
pull_request:
paths:
- ".github/workflows/lint-cpp.yml"
- "**/*.h"
- "**/*.hpp"
- "**/*.cpp"
- "**/*.c"
- "**/*.mm"
jobs:
lint:
name: Format C++
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v6
- uses: oven-sh/setup-bun@v2
- name: Run clang-format
run: bun run lint-cpp
- name: Verify no files have changed after format
run: git diff --exit-code HEAD -- . ':(exclude)bun.lock'