Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[SOFT-582] MISRA compliance CI #482

Draft
wants to merge 10 commits into
base: master
Choose a base branch
from
19 changes: 17 additions & 2 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ name: CI
on:
# Run on all pull requests and all pushes to master
push:
branches: [ master ]
branches: [master]
pull_request:

# Allow running this workflow manually
Expand Down Expand Up @@ -57,7 +57,7 @@ jobs:

- uses: actions/setup-python@v2
with:
python-version: '3.9'
python-version: "3.9"

- name: Install Python tooling
run: |
Expand Down Expand Up @@ -135,3 +135,18 @@ jobs:
make test_all PLATFORM=x86 DEFINE="${DEFINES}"
make pytest_all
make build_all PLATFORM=x86 COMPILER=clang DEFINE="${DEFINES}"

misra-cppcheck:
runs-on: ubuntu-20.04
timeout-minutes: 5
steps:
- uses: actions/checkout@v2
- uses: actions/setup-python@v2
with:
python-version: "3.9"

- name: Cppcheck MISRA-C Compilence
run: |
sudo apt-get install cppcheck
cppcheck
find . -path **/src/** | cppcheck --enable=all --addon=misra.py --file-list=-