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>
+++ /dev/null
---no-tree
---show-types
---exclude .github
---exclude clustermd_tests
---exclude documentation
---exclude misc
---exclude systemd
---exclude tests
---ignore FILE_PATH_CHANGES
---ignore EMAIL_SUBJECT
--- /dev/null
+--no-tree
+--show-types
+--exclude .github
+--exclude clustermd_tests
+--exclude documentation
+--exclude misc
+--exclude systemd
+--exclude tests
+--ignore FILE_PATH_CHANGES
+--ignore EMAIL_SUBJECT
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