From 65e1972d9a4a4f7c2afc7589b9befd03cdd3061c Mon Sep 17 00:00:00 2001 From: Timon Ensel Date: Thu, 17 Oct 2024 07:50:57 +0200 Subject: [PATCH] replace cppcheck with cppcheckaction --- .github/workflows/cmake-multi-platform.yml | 30 +++++++--------------- 1 file changed, 9 insertions(+), 21 deletions(-) diff --git a/.github/workflows/cmake-multi-platform.yml b/.github/workflows/cmake-multi-platform.yml index 7a0558d..0d560fc 100644 --- a/.github/workflows/cmake-multi-platform.yml +++ b/.github/workflows/cmake-multi-platform.yml @@ -138,26 +138,14 @@ jobs: cppcheck: runs-on: ubuntu-latest - container: "fedora:latest" steps: - - name: Update package list - run: dnf update -y - - name: Install Dependencies - run: | - sudo dnf install -y ${{ env.BUILD_DEPENDENCIES }} - sudo dnf install -y ${{ env.OSTREE_TUI_DEPENDENCIES }} - sudo dnf install -y cppcheck - - name: Checkout - uses: actions/checkout@v3 - - name: "Build" - env: - CPR_BUILD_TESTS: OFF - CPR_ENABLE_CPPCHECK: ON - uses: ashutoshvarma/action-cmake-build@master + - uses: actions/checkout@v2 + - name: "Run cppcheck" + uses: deep5050/cppcheck-action@main with: - build-dir: ${{ github.workspace }}/build - source-dir: ${{ github.workspace }} - cc: gcc - cxx: g++ - build-type: Release - run-test: false + github_token: ${{ secrets.GITHUB_TOKEN }} + check_library: enable + enable: warning,style,performance,missingInclude + output_file: cppcheck_report.txt + - name: "Print report" + run: cat cppcheck_report.txt