Merge pull request #27 from niwciu/develop #57
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Run cppcheck-action | |
on: | |
workflow_dispatch: | |
push: | |
branches: [main, develop] | |
pull_request: | |
branches: [main, develop] | |
jobs: | |
cppcheck-annotations_scr: | |
name: cppcheck-annotations /src | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4.1.1 | |
- name: Run cppcheck-annotation-action for src | |
uses: Konstantin343/cppcheck-annotation-action@v1.0 | |
with: | |
std: 'c99' | |
platform: 'unix64' | |
log-level: 'verbose' | |
sources: './src' | |
annotation-failures: 'warning' | |
# suppress: 'unusedFunction' | |
# annotation-level-default: 'error' | |
- name: Annotate lines with errors src | |
uses: yuzutech/annotations-action@v0.4.0 | |
with: | |
repo-token: "${{ secrets.GITHUB_TOKEN }}" | |
title: 'Results of CppCheck src files' | |
input: 'annotations.json' | |
# - name: Run cppcheck-annotation-action for tests | |
# uses: Konstantin343/cppcheck-annotation-action@v1.0 | |
# with: | |
# std: 'c99' | |
# platform: 'unix64' | |
# log-level: 'verbose' | |
# sources: './test/template' | |
# annotation-failures: 'warning' | |
# # suppress: 'unusedFunction' | |
# # annotation-level-default: 'error' | |
# - name: Annotate lines with errors test_src | |
# uses: yuzutech/annotations-action@v0.4.0 | |
# with: | |
# repo-token: "${{ secrets.GITHUB_TOKEN }}" | |
# title: 'Results of CppCheck test lcd_hd44780 files' | |
# input: 'annotations.json' |