Skip to content

Commit 5b008fd

Browse files
committed
add pre-commit workflow
1 parent cf66c73 commit 5b008fd

File tree

1 file changed

+28
-0
lines changed

1 file changed

+28
-0
lines changed

.github/workflows/pre-commit.yml

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
name: pre-commit
2+
3+
on:
4+
pull_request:
5+
push:
6+
branches: [master]
7+
8+
permissions: read-all
9+
10+
jobs:
11+
pre-commit:
12+
runs-on: ubuntu-latest
13+
timeout-minutes: 30
14+
steps:
15+
- name: Checkout repo
16+
uses: actions/[email protected]
17+
18+
- name: Set up python
19+
uses: actions/setup-python@v5
20+
with:
21+
python-version: '3.12'
22+
23+
- name: Version of clang-format
24+
run: |
25+
clang-format --version
26+
27+
- name: Run pre-commit checks
28+
uses: pre-commit/[email protected]

0 commit comments

Comments
 (0)