mirror of https://github.com/thesofproject/sof.git
.github: independent strict and non-strict runs of check patch
This makes the difference between "strict" and regular failures very clear. Stopping after non-strict failures is misleading, it can give the wrong impression that there are very few warnings left. Signed-off-by: Marc Herbert <marc.herbert@intel.com>
This commit is contained in:
parent
46a5de6f49
commit
eaf95695f6
|
@ -17,6 +17,12 @@ on: [pull_request]
|
|||
jobs:
|
||||
checkpatch:
|
||||
runs-on: ubuntu-20.04
|
||||
|
||||
strategy:
|
||||
fail-fast: false
|
||||
matrix:
|
||||
strictness: [null, --strict]
|
||||
|
||||
env:
|
||||
PR_NUM: ${{github.event.number}}
|
||||
# TODO: reduce duplication with scripts/sof-*-commit-hook.sh
|
||||
|
@ -41,12 +47,12 @@ jobs:
|
|||
# show what we got
|
||||
git --no-pager log --oneline --graph --decorate --max-count=50
|
||||
|
||||
- name: normal checkpatch
|
||||
run: .github/workflows/checkpatch_list.sh ${CHK_CMD_OPTS} < PR_SHAs.txt
|
||||
|
||||
- name: checkpatch --strict
|
||||
- name: checkpatch
|
||||
env:
|
||||
STRICTNESS: ${{ matrix.strictness }}
|
||||
run: .github/workflows/checkpatch_list.sh ${CHK_CMD_OPTS}
|
||||
--strict < PR_SHAs.txt
|
||||
${STRICTNESS} < PR_SHAs.txt
|
||||
|
||||
yamllint:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
|
|
Loading…
Reference in New Issue