aboutsummaryrefslogtreecommitdiffstats
path: root/.github/workflows
diff options
context:
space:
mode:
authorBernd Schubert <bernd@bsbernd.com>2025-01-01 22:58:45 +0100
committerBernd Schubert <bernd@bsbernd.com>2025-01-01 23:34:08 +0100
commite156075b1566e085d8e56cc79c94b2f016628198 (patch)
treede78546b2b98f19f6777f014e7e4f49a895b5dc7 /.github/workflows
parent94e269a8a5c50b6bb595261abb9d6cffe3380acb (diff)
downloadlibfuse-e156075b1566e085d8e56cc79c94b2f016628198.tar.gz
Add a checkpatch.pl github workflow
Signed-off-by: Bernd Schubert <bernd@bsbernd.com>
Diffstat (limited to '.github/workflows')
-rw-r--r--.github/workflows/checkpatch.yml22
1 files changed, 22 insertions, 0 deletions
diff --git a/.github/workflows/checkpatch.yml b/.github/workflows/checkpatch.yml
new file mode 100644
index 0000000..9a3cd1b
--- /dev/null
+++ b/.github/workflows/checkpatch.yml
@@ -0,0 +1,22 @@
+name: Checkpatch
+
+on:
+ pull_request:
+ types: [opened, synchronize, reopened]
+
+jobs:
+ checkpatch:
+ runs-on: ubuntu-latest
+ steps:
+ - uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
+ with:
+ fetch-depth: 0
+ - name: Install dependencies
+ run: |
+ sudo apt-get update
+ sudo apt-get install -y perl
+ - name: Run checkpatch.pl
+ run: |
+ git fetch origin ${{ github.base_ref }}
+ base_commit=$(git merge-base FETCH_HEAD ${{ github.event.pull_request.head.sha }})
+ ./checkpatch.pl --no-tree -g $base_commit