Skip to content

Commit d6af660

Browse files
committed
xpadneo, CI: Add Github workflow to check commits
Signed-off-by: Kai Krakow <kai@kaishome.de>
1 parent 2d8775e commit d6af660

File tree

1 file changed

+18
-0
lines changed

1 file changed

+18
-0
lines changed

.github/workflows/checkpatch.yml

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
name: Kernel Coding Style Check
2+
3+
on: [pull_request, push]
4+
5+
jobs:
6+
check-style:
7+
runs-on: ubuntu-latest
8+
steps:
9+
- name: Checkout repository
10+
uses: actions/checkout@v4
11+
with:
12+
fetch-depth: 0
13+
14+
- name: Download checkpatch.pl
15+
run: wget https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/plain/scripts/checkpatch.pl
16+
17+
- name: Run checkpatch.pl
18+
run: perl checkpatch.pl --strict --no-tree <(git format-patch --stdout origin/master)

0 commit comments

Comments
 (0)