forked from SCST-project/scst
-
Notifications
You must be signed in to change notification settings - Fork 0
27 lines (23 loc) · 883 Bytes
/
checkpatch_pull.yml
File metadata and controls
27 lines (23 loc) · 883 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
name: Checkpatch upon pull request
on:
pull_request:
branches:
- master
jobs:
checkpatch:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@main
with:
ref: ${{github.event.pull_request.head.sha}}
fetch-depth: 0
- name: Download checkpatch.pl
run: |
curl https://raw.githubusercontent.com/torvalds/linux/master/scripts/checkpatch.pl -o checkpatch.pl
curl https://raw.githubusercontent.com/torvalds/linux/master/scripts/spelling.txt -o spelling.txt
curl https://raw.githubusercontent.com/torvalds/linux/master/scripts/const_structs.checkpatch -o const_structs.checkpatch
chmod +x checkpatch.pl
- name: Run checkpatch.pl
run: |
CHECKPATCH_PATH=. ./scripts/checkpatch_commits ${{github.event.pull_request.base.sha}}