Skip to content

Commit a55c0a7

Browse files
committed
Add pre-commit workflow
1 parent bd51706 commit a55c0a7

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/checkout@v4.2.2
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/action@v3.0.1

0 commit comments

Comments
 (0)