diff --git a/.github/workflows/compliance.yml b/.github/workflows/compliance.yml index 3d7c2b9e951..94b622d9f25 100644 --- a/.github/workflows/compliance.yml +++ b/.github/workflows/compliance.yml @@ -36,6 +36,7 @@ jobs: west update - name: Run Compliance Tests + continue-on-error: true id: compliance env: BASE_REF: ${{ github.base_ref }} @@ -48,7 +49,7 @@ jobs: # debug ls -la git log --pretty=oneline | head -n 10 - ./scripts/ci/check_compliance.py -m Codeowners -m Devicetree -m Gitlint -m Identity -m Nits -m pylint -m checkpatch -m Kconfig -c origin/${BASE_REF}.. || true + ./scripts/ci/check_compliance.py -m Codeowners -m Devicetree -m Gitlint -m Identity -m Nits -m pylint -m checkpatch -m Kconfig -c origin/${BASE_REF}.. - name: upload-results uses: actions/upload-artifact@master @@ -59,6 +60,10 @@ jobs: - name: check-warns run: | + if [[ ! -s "compliance.xml" ]]; then + exit 1; + fi + for file in Nits.txt checkpatch.txt Identity.txt Gitlint.txt pylint.txt Devicetree.txt Kconfig.txt Codeowners.txt; do if [[ -s $file ]]; then errors=$(cat $file)