]> git.neil.brown.name Git - mdadm.git/commitdiff
CI: use prepared checkpatch.conf file only for GH actions
authorKinga Stefaniuk <kinga.stefaniuk@intel.com>
Mon, 1 Jul 2024 14:31:32 +0000 (16:31 +0200)
committerMariusz Tkaczyk <mariusz.tkaczyk@linux.intel.com>
Tue, 2 Jul 2024 10:19:00 +0000 (12:19 +0200)
Configuration file .checkpatch.conf is working properly only with
GH actions, because flags from GH plugin are used there. This file
shall not be placed in main repo directory, because it causes errors
while using checkpatch from Linux. Add step to review.yml to copy
this file before checkpatch action is started.

Signed-off-by: Kinga Stefaniuk <kinga.stefaniuk@intel.com>
.checkpatch.conf [deleted file]
.github/tools/.checkpatch.conf [new file with mode: 0644]
.github/workflows/review.yml

diff --git a/.checkpatch.conf b/.checkpatch.conf
deleted file mode 100644 (file)
index d6e3bc4..0000000
+++ /dev/null
@@ -1,10 +0,0 @@
---no-tree
---show-types
---exclude .github
---exclude clustermd_tests
---exclude documentation
---exclude misc
---exclude systemd
---exclude tests
---ignore FILE_PATH_CHANGES
---ignore EMAIL_SUBJECT
diff --git a/.github/tools/.checkpatch.conf b/.github/tools/.checkpatch.conf
new file mode 100644 (file)
index 0000000..d6e3bc4
--- /dev/null
@@ -0,0 +1,10 @@
+--no-tree
+--show-types
+--exclude .github
+--exclude clustermd_tests
+--exclude documentation
+--exclude misc
+--exclude systemd
+--exclude tests
+--ignore FILE_PATH_CHANGES
+--ignore EMAIL_SUBJECT
index 57f5d23839f5eed90db8af38f0c4ee2e3ca4c3e7..026fdab9a1fd651e8e7aef1a82fad7ed6defc6a8 100644 (file)
@@ -37,5 +37,7 @@ jobs:
       with:
         ref: ${{ github.event.pull_request.head.sha }}
         fetch-depth: ${{ env.PR_FETCH_DEPTH }}
+    - name: 'Move prepared .checkpatch.conf file to main directory'
+      run: mv .github/tools/.checkpatch.conf .
     - name: Run checkpatch review
       uses: webispy/checkpatch-action@v9