1 From 6c110195b1f9b4e39676065d5973ecf603746862 Mon Sep 17 00:00:00 2001
2 From: Dave Stevenson <dave.stevenson@raspberrypi.com>
3 Date: Wed, 8 Mar 2023 15:28:19 +0000
4 Subject: [PATCH] workflows: We all love checkpatch, so add it to the
7 This is currently running on defaults, so the --strict desired
8 for media drivers and similar won't be observed. That may be
11 Signed-off-by: Dave Stevenson <dave.stevenson@raspberrypi.com>
13 .github/workflows/checkpatch.yml | 18 ++++++++++++++++++
14 .github/workflows/ci_checkpatch.conf | 4 ++++
15 2 files changed, 22 insertions(+)
16 create mode 100644 .github/workflows/checkpatch.yml
17 create mode 100644 .github/workflows/ci_checkpatch.conf
20 +++ b/.github/workflows/checkpatch.yml
22 +name: Advisory checkpatch review
27 + name: checkpatch review
28 + runs-on: ubuntu-latest
30 + - name: 'Calculate PR commits + 1'
31 + run: echo "PR_FETCH_DEPTH=$(( ${{ github.event.pull_request.commits }} + 1 ))" >> $GITHUB_ENV
32 + - uses: actions/checkout@v3
34 + ref: ${{ github.event.pull_request.head.sha }}
35 + fetch-depth: ${{ env.PR_FETCH_DEPTH }}
36 + - name: Copy checkpatch.conf
37 + run: cp ${{github.workspace}}/.github/workflows/ci_checkpatch.conf ${{github.workspace}}/.checkpatch.conf
38 + - name: Run checkpatch review
39 + uses: webispy/checkpatch-action@v9
41 +++ b/.github/workflows/ci_checkpatch.conf
44 +--ignore FILE_PATH_CHANGES
45 +--ignore GIT_COMMIT_ID
46 +--ignore SPDX_LICENSE_TAG