diff --git a/.github/workflows/build_check.yml b/.github/workflows/build_check.yml index 0cbe379..894609f 100644 --- a/.github/workflows/build_check.yml +++ b/.github/workflows/build_check.yml @@ -79,3 +79,20 @@ jobs: clang-format-version: '11' check-path: ${{ matrix.path }} + cppcheck: + name: Run Cppcheck + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v2 + - name: Run Cppcheck + uses: Bedzior/cppcheck-action@v1.0 + with: + enabled checks: all + enable inconclusive: true + generate report: true + - name: Upload report + uses: actions/upload-artifact@v1 + with: + name: report + path: output + diff --git a/.github/workflows/cppcheck.yml b/.github/workflows/cppcheck.yml deleted file mode 100644 index 1e2d257..0000000 --- a/.github/workflows/cppcheck.yml +++ /dev/null @@ -1,21 +0,0 @@ -name: cppcheck-action-test -on: [push] - -jobs: - build: - name: cppcheck-test - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v2 - - - name: cppcheck - uses: deep5050/cppcheck-action@main - with: - github_token: ${{ secrets.GITHUB_TOKEN}} - - - - name: publish report - uses: mikeal/publish-to-github-action@master - env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - BRANCH_NAME: 'develop' # your branch name goes here