mirror of
https://github.com/lora-aprs/LoRa_APRS_iGate.git
synced 2026-04-05 14:37:03 +00:00
add cppcheck
This commit is contained in:
parent
7baefa51bb
commit
9ef9aff52a
2 changed files with 24 additions and 20 deletions
42
.github/workflows/build_check.yml
vendored
42
.github/workflows/build_check.yml
vendored
|
|
@ -30,7 +30,8 @@ jobs:
|
|||
build:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
- name: Checkout code
|
||||
uses: actions/checkout@v2
|
||||
- name: Cache pip
|
||||
uses: actions/cache@v2
|
||||
with:
|
||||
|
|
@ -50,7 +51,8 @@ jobs:
|
|||
pip install --upgrade platformio
|
||||
- name: Run PlatformIO CI
|
||||
run: platformio run
|
||||
- uses: actions/upload-artifact@v2
|
||||
- name: Upload artifacts
|
||||
uses: actions/upload-artifact@v2
|
||||
with:
|
||||
name: firmware
|
||||
path: .pio/build/lora_board/firmware.bin
|
||||
|
|
@ -72,27 +74,27 @@ jobs:
|
|||
- 'lib/System'
|
||||
#- 'lib/TimeLib'
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
- name: Checkout code
|
||||
uses: actions/checkout@v2
|
||||
- name: Run clang-format style check for C/C++ programs.
|
||||
uses: jidicula/clang-format-action@v3.2.0
|
||||
with:
|
||||
clang-format-version: '11'
|
||||
check-path: ${{ matrix.path }}
|
||||
|
||||
# cppcheck:
|
||||
# name: Run Cppcheck
|
||||
# runs-on: ubuntu-latest
|
||||
# steps:
|
||||
# - uses: actions/checkout@v2
|
||||
# - name: Run Cppcheck
|
||||
# uses: Bedzior/cppcheck-action
|
||||
# with:
|
||||
# enabled checks: all
|
||||
# enable inconclusive: true
|
||||
# generate report: true
|
||||
# - name: Upload report
|
||||
# uses: actions/upload-artifact@v1
|
||||
# with:
|
||||
# name: report
|
||||
# path: output
|
||||
|
||||
cppcheck:
|
||||
name: Run Cppcheck
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: checkout code
|
||||
uses: actions/checkout@v2
|
||||
- run: docker pull facthunder/cppcheck:latest
|
||||
- name: Run Cppcheck
|
||||
run: docker run --rm -v ${PWD}:/src facthunder/cppcheck:latest cppcheck -v --xml --enable=all . 2> report.xml
|
||||
- name: Generate HTML report
|
||||
run: docker run --rm -v ${PWD}:/src facthunder/cppcheck:latest cppcheck-htmlreport --file=report.xml --report-dir=output
|
||||
- name: Upload report
|
||||
uses: actions/upload-artifact@v1
|
||||
with:
|
||||
name: Cppcheck Report
|
||||
path: output
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue