Skip to content

Commit 09c5cd8

Browse files
committed
Create clang-format.yml
1 parent 01a3ccb commit 09c5cd8

1 file changed

Lines changed: 28 additions & 0 deletions

File tree

.github/workflows/clang-format.yml

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
name: Check code style
2+
3+
on:
4+
push:
5+
branches:
6+
- master
7+
- v*
8+
9+
paths:
10+
- .clang-format
11+
- src/**
12+
13+
pull_request:
14+
paths:
15+
- .clang-format
16+
- src/**
17+
18+
jobs:
19+
check-format:
20+
runs-on: ubuntu-latest
21+
steps:
22+
- uses: actions/checkout@v3
23+
24+
- name: Install dependencies
25+
run: sudo apt update -q && sudo apt install -yq clang-format
26+
27+
- name: Check code style
28+
run: clang-format -n -style=file --Werror src/*.{cpp,h}

0 commit comments

Comments
 (0)