Skip to content

Commit

Permalink
Add cppcheck to PR workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
BrianPugh committed Oct 9, 2023
1 parent 032f9eb commit aaeccb0
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion .github/workflows/pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,13 +31,22 @@ jobs:
with:
submodules: recursive

- name: Install cppcheck
run: |
sudo apt-get update
sudo apt-get install -y cppcheck
- name: Run cppcheck
run: |
cppcheck src/*.c --enable=warning --error-exitcode=1 --force
- name: esp-idf build library
uses: espressif/esp-idf-ci-action@main
with:
esp_idf_version: ${{ matrix.idf_ver }}
target: ${{ matrix.idf_target }}
path: "example/"
command: apt update && apt install -y python3-venv && idf.py build
command: apt-get update && apt-get install -y python3-venv && idf.py build

- name: esp-idf build tests
uses: espressif/esp-idf-ci-action@main
Expand Down

0 comments on commit aaeccb0

Please sign in to comment.