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