-
Notifications
You must be signed in to change notification settings - Fork 132
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[Build, CI]: Add a GitHub Action to run the checkpatch.pl script
Signed-off-by: Martin Belanger <[email protected]>
- Loading branch information
Martin Belanger
committed
Oct 31, 2023
1 parent
da8c28e
commit fc6a338
Showing
2 changed files
with
29 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
# This isn't actually a Linux kernel tree | ||
--no-tree | ||
|
||
#--ignore CONFIG_DESCRIPTION | ||
#--ignore FILE_PATH_CHANGES | ||
#--ignore GERRIT_CHANGE_ID | ||
#--ignore GIT_COMMIT_ID | ||
#--ignore NEW_TYPEDEFS | ||
#--ignore SPDX_LICENSE_TAG | ||
#--ignore SPACING | ||
#--ignore CONST_STRUCT | ||
#--ignore EMBEDDED_FUNCTION_NAME | ||
#--exclude externals | ||
#--exclude examples |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
name: checkpatch review | ||
on: [pull_request] | ||
jobs: | ||
checkpatch: | ||
name: checkpatch review | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: 'Calculate PR commits + 1' | ||
run: echo "PR_FETCH_DEPTH=$(( ${{ github.event.pull_request.commits }} + 1 ))" >> $GITHUB_ENV | ||
- uses: actions/checkout@v4 | ||
with: | ||
ref: ${{ github.event.pull_request.head.sha }} | ||
fetch-depth: ${{ env.PR_FETCH_DEPTH }} | ||
- name: Run checkpatch review | ||
uses: webispy/checkpatch-action@v9 |