Skip to content
This repository was archived by the owner on Jan 23, 2024. It is now read-only.

Commit 0ae6a60

Browse files
timonegktexhnolyze
authored andcommitted
ci(pre-commit): add github action for linting/formatting
that will run and check the pre-commit hooks on PRs and updates on the master branch
1 parent 28409f8 commit 0ae6a60

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed

.github/workflows/pre-commit.yml

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
name: Code style checks with pre-commit
2+
3+
on:
4+
pull_request:
5+
push:
6+
branches: [main]
7+
8+
jobs:
9+
pre-commit:
10+
runs-on: ubuntu-latest
11+
steps:
12+
- uses: actions/checkout@v4
13+
- uses: actions/setup-python@v4
14+
- name: Install cppcheck
15+
run: sudo apt install cppcheck -y
16+
- uses: pre-commit/action@v3.0.0

0 commit comments

Comments
 (0)