Fix coverity scan warnings #32
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: Code Checks | |
on: | |
push: | |
pull_request: | |
branches: | |
- main | |
jobs: | |
cppcheck_2004: | |
runs-on: ubuntu-20.04 | |
if: "!contains(github.event.head_commit.message, '[ci skip]') && !contains(github.event.head_commit.message, '[skip ci]')" | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v2 | |
- name: Install Requirements | |
run: | | |
sudo apt update | |
sudo apt install -y cppcheck | |
- name: Run cppcheck test | |
run: ./scripts/cppcheck.sh | |
cppcheck_latest: | |
runs-on: ubuntu-latest | |
if: "!contains(github.event.head_commit.message, '[ci skip]') && !contains(github.event.head_commit.message, '[skip ci]')" | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v2 | |
- name: Install Requirements | |
run: | | |
sudo apt update | |
sudo apt install -y cppcheck | |
- name: Run cppcheck test | |
run: ./scripts/cppcheck.sh |