From eb3d3346c7c7bad825794389e532c5ac93b8eb81 Mon Sep 17 00:00:00 2001 From: Taras Drozdovskyi Date: Mon, 19 Feb 2024 17:18:33 +0200 Subject: [PATCH] Test Linter Signed-off-by: Taras Drozdovskyi --- .github/workflows/linter.yml | 19 +++++++++---------- README.md | 1 + 2 files changed, 10 insertions(+), 10 deletions(-) diff --git a/.github/workflows/linter.yml b/.github/workflows/linter.yml index 143f6ac4..c7a1cc04 100644 --- a/.github/workflows/linter.yml +++ b/.github/workflows/linter.yml @@ -6,21 +6,20 @@ jobs: cpp-linter: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v3 - - uses: cpp-linter/cpp-linter-action@v2 + - uses: actions/checkout@v4 + - uses: cpp-linter/cpp-linter-action@main id: linter + continue-on-error: true env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} with: - style: file - # The following value will only update a single comment - # in a pull request's thread. Set it to false to disable the comment. - # Set it to true to post a new comment (and delete the old comment). - # thread-comments: ${{ github.event_name == 'pull_request' && 'update' }} - thread-comments: ${{ github.event_name == 'push' && 'update' }} + style: '' + files-changed-only: false + ignore: crypto/ - name: Fail fast?! - if: steps.linter.outputs.checks-failed > 0 - run: echo "Some files failed the linting checks!" + if: steps.linter.outputs.checks-failed != 0 + run: | + echo "some linter checks failed. ${{ steps.linter.outputs.checks-failed }}" # for actual deployment # run: exit 1 \ No newline at end of file diff --git a/README.md b/README.md index 3d0b4c1f..d0c6d69f 100644 --- a/README.md +++ b/README.md @@ -97,3 +97,4 @@ you can find here](.github/CONTRIBUTING.md). [NuMaker-PFM-M2351]: http://www.nuvoton.com.cn/hq/products/iot-solution/iot-platform/numaker-maker-platform/numaker-pfm-m2351?__locale=en [M2351-Badge]: docs/schemes/m2351_badge [V2M-MPS2-Qemu]: https://developer.arm.com/documentation/100964/1114/Microcontroller-Prototyping-System-2?lang=en +