diff --git a/.github/workflows/cppcheck.yml b/.github/workflows/cppcheck.yml index d45c9568..69423cad 100644 --- a/.github/workflows/cppcheck.yml +++ b/.github/workflows/cppcheck.yml @@ -1,14 +1,27 @@ -name: cppcheck-action-test +name: cppcheck-annotations + on: [pull_request] jobs: build: - name: cppcheck-test + name: cppcheck-annotations runs-on: ubuntu-latest steps: - uses: actions/checkout@v2 + with: + ref: ${{ github.event.pull_request.head.sha }} + persist-credentials: false + + - name: Run cppcheck-annotation-action + uses: Konstantin343/cppcheck-annotation-action@v1.0 + with: + std: 'c++14' + platform: 'unix64' + log-level: 'verbose' - - name: cppcheck - uses: chmorgan/cppcheck-action@main + - name: Annotate lines with errors + uses: yuzutech/annotations-action@v0.4.0 with: - github_token: ${{ secrets.GITHUB_TOKEN}} + repo-token: "${{ secrets.GITHUB_TOKEN }}" + title: 'Results of CppCheck' + input: 'annotations.json'