Setting watchdog timeout on startup #76
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: Cppcheck Code Analysis | |
on: | |
push: | |
branches: | |
- main | |
pull_request: | |
branches: | |
- main | |
workflow_dispatch: | |
jobs: | |
cppcheck: | |
name: Run Cppcheck | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v4 | |
- name: Install Cppcheck | |
run: sudo apt-get install cppcheck | |
- name: Run Cppcheck | |
run: | | |
cppcheck ./src --enable=all --inconclusive --xml 2> cppcheck-report.xml | |
- name: Upload Cppcheck results | |
if: always() | |
uses: actions/upload-artifact@v4 | |
with: | |
name: cppcheck-report | |
path: cppcheck-report.xml | |
- name: Display Cppcheck results | |
if: always() | |
run: cat cppcheck-report.xml |