Skip to content

Commit

Permalink
trial
Browse files Browse the repository at this point in the history
  • Loading branch information
Al-khwarizmi-780 committed May 4, 2024
1 parent 84a59d5 commit df66360
Showing 1 changed file with 27 additions and 14 deletions.
41 changes: 27 additions & 14 deletions .github/workflows/cppcheck.yml
Original file line number Diff line number Diff line change
@@ -1,19 +1,32 @@
name: Cppcheck

on:
push:
pull_request:
name: cppcheck-action
on: [push]

jobs:
cppcheck:
build:
name: cppcheck
runs-on: ubuntu-latest

steps:
- name: Checkout code
uses: actions/checkout@v2

- name: Install cppcheck
run: sudo apt-get install -y cppcheck
- uses: actions/checkout@v2
- name: cppcheck
uses: deep5050/cppcheck-action@main
with:
github_token: ${{ secrets.GITHUB_TOKEN}}
# check_library:
# skip_preprocessor:
# enable:
exclude_check: src/third_party
# inconclusive:
# inline_suppression:
# force_language:
# force:
# max_ctu_depth:
# platform:
# std:
# output_file:
# other_options:

- name: Run cppcheck
run: cppcheck --version && cppcheck src/openkf/ src/examples/ --error-exitcode=1
- name: publish report
uses: mikeal/publish-to-github-action@master
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
BRANCH_NAME: 'main' # your branch name goes here

0 comments on commit df66360

Please sign in to comment.