From 17e08ead2456560dac82613a34ffb91f9d4af67b Mon Sep 17 00:00:00 2001 From: martelkr <43619495+martelkr@users.noreply.github.com> Date: Tue, 2 Jan 2024 13:05:20 -0800 Subject: [PATCH] fix cppcheck (#33) * try new action * add path * remove path and add file * fix action * fix path * add code * try to debug * try to debug * try new action * fix action name * fix action name * upload artifact --- .github/workflows/cppcheck.yml | 26 +++++++++++++------------- 1 file changed, 13 insertions(+), 13 deletions(-) diff --git a/.github/workflows/cppcheck.yml b/.github/workflows/cppcheck.yml index 5ae3ed8..e9a9b68 100644 --- a/.github/workflows/cppcheck.yml +++ b/.github/workflows/cppcheck.yml @@ -3,24 +3,24 @@ name: cppcheck on: push: branches: [ "main" ] + pull_request: + branches: [ "main" ] -permissions: - actions: write - contents: write - jobs: Linux-cppcheck: runs-on: ubuntu-latest steps: - uses: actions/checkout@v2 - - name: cppcheck - uses: chmorgan/cppcheck-action-jackson@main + + - uses: Bedzior/run-cppcheck@v1.0.0 + with: + include directories: inc + path: test + verbose: true + + - name: Upload report + uses: actions/upload-artifact@v1 with: - github_token: ${{ secrets.GITHUB_TOKEN}} - enable: all - inline_suppression: enable - force_language: c++ - platform: unix64 - std: c++20 - other_options: -I inc --verbose --suppress=missingIncludeSystem + name: report + path: output