Implement TM/TC for GOLDS-UFSC mission and general improvements #217
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
# | |
# static-analysis-workflow.yml | |
# | |
# Copyright The OBDH 2.0 Contributors. | |
# | |
# This file is part of OBDH 2.0. | |
# | |
# OBDH 2.0 is free software: you can redistribute it and/or modify | |
# it under the terms of the GNU General Public License as published by | |
# the Free Software Foundation, either version 3 of the License, or | |
# (at your option) any later version. | |
# | |
# OBDH 2.0 is distributed in the hope that it will be useful, | |
# but WITHOUT ANY WARRANTY; without even the implied warranty of | |
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |
# GNU General Public License for more details. | |
# | |
# You should have received a copy of the GNU General Public License | |
# along with OBDH 2.0. If not, see <http://www.gnu.org/licenses/>. | |
# | |
# | |
name: Static Analysis | |
on: | |
push: | |
branches: [ dev_firmware ] | |
pull_request: | |
branches: [ master, dev, dev_firmware] | |
# 'workflow_dispatch' allows manual execution | |
# of this workflow under the repository's 'Actions' tab | |
workflow_dispatch: | |
jobs: | |
cppcheck-analysis: | |
name: cppcheck-analysis | |
runs-on: ubuntu-22.04 | |
strategy: | |
fail-fast: false | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Install CppCheck | |
run: sudo apt install -y cppcheck | |
- name: Execute CppCheck on tasks files | |
run: cppcheck --std=c99 --force --error-exitcode=-1 --inline-suppr --addon=misra.py -Ifirmware -Ifirmware/app -Ifirmware/app -Ifirmware/app/libs -Ifirmware/freertos/include -Ifirmware/config -Ifirmware/freertos/portable/CCS/MSP430X -Ifirmware/app/libs/libpredict/include firmware/app/tasks/ | |
- name: Execute CppCheck on utils files | |
run: cppcheck --std=c99 --force --error-exitcode=-1 --addon=misra.py -Ifirmware -Ifirmware/app -Ifirmware/app -Ifirmware/app/libs -Ifirmware/freertos/include -Ifirmware/config -Ifirmware/freertos/portable/CCS/MSP430X -Ifirmware/app/libs/libpredict/include firmware/app/utils/ | |
- name: Execute CppCheck on structs files | |
run: cppcheck --std=c99 --force --error-exitcode=-1 --addon=misra.py -Ifirmware -Ifirmware/app -Ifirmware/app -Ifirmware/app/libs -Ifirmware/freertos/include -Ifirmware/config -Ifirmware/freertos/portable/CCS/MSP430X -Ifirmware/app/libs/libpredict/include firmware/app/structs/ | |
- name: Execute CppCheck on devices files | |
run: cppcheck --std=c99 --error-exitcode=-1 --addon=misra.py -Ifirmware -Ifirmware/app -Ifirmware/app -Ifirmware/app/libs -Ifirmware/freertos/include -Ifirmware/config -Ifirmware/freertos/portable/CCS/MSP430X -Ifirmware/app/libs/libpredict/include firmware/devices/ | |
- name: Execute CppCheck on drivers files | |
run: cppcheck --std=c99 --error-exitcode=-1 --inline-suppr --addon=misra.py -Ifirmware -Ifirmware/app -Ifirmware/app -Ifirmware/app/libs -Ifirmware/freertos/include -Ifirmware/config -Ifirmware/freertos/portable/CCS/MSP430X -Ifirmware/app/libs/libpredict/include firmware/drivers/ | |
- name: Execute CppCheck on system files | |
run: cppcheck --std=c99 --error-exitcode=-1 --inline-suppr --addon=misra.py -Ifirmware -Ifirmware/app -Ifirmware/app -Ifirmware/app/libs -Ifirmware/freertos/include -Ifirmware/config -Ifirmware/freertos/portable/CCS/MSP430X -Ifirmware/app/libs/libpredict/include firmware/system/ | |
- name: Execute CppCheck on main files | |
run: cppcheck --std=c99 --error-exitcode=-1 --addon=misra.py -Ifirmware -Ifirmware/app -Ifirmware/app -Ifirmware/app/libs -Ifirmware/freertos/include -Ifirmware/config -Ifirmware/freertos/portable/CCS/MSP430X -Ifirmware/app/libs/libpredict/include firmware/main.c firmware/version.h |