Merge pull request #48 from niwciu/develop #165
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/[email protected] | |
- name: Run cppcheck-annotation-action for src | |
uses: Konstantin343/[email protected] | |
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/[email protected] | |
with: | |
repo-token: "${{ secrets.GITHUB_TOKEN }}" | |
title: 'Results of CppCheck src files' | |
input: 'annotations.json' | |
- name: Run cppcheck-annotation-action for tests | |
uses: Konstantin343/[email protected] | |
with: | |
std: 'c99' | |
platform: 'unix64' | |
log-level: 'verbose' | |
sources: './test/lcd_hd44780' | |
annotation-failures: 'warning' | |
# suppress: 'unusedFunction' | |
# annotation-level-default: 'error' | |
- name: Annotate lines with errors test_src | |
uses: yuzutech/[email protected] | |
with: | |
repo-token: "${{ secrets.GITHUB_TOKEN }}" | |
title: 'Results of CppCheck test lcd_hd44780 files' | |
input: 'annotations.json' | |