kopia lustrzana https://github.com/lora-aprs/LoRa_APRS_iGate
add cppcheck
rodzic
7baefa51bb
commit
9ef9aff52a
|
@ -30,7 +30,8 @@ jobs:
|
||||||
build:
|
build:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v2
|
- name: Checkout code
|
||||||
|
uses: actions/checkout@v2
|
||||||
- name: Cache pip
|
- name: Cache pip
|
||||||
uses: actions/cache@v2
|
uses: actions/cache@v2
|
||||||
with:
|
with:
|
||||||
|
@ -50,7 +51,8 @@ jobs:
|
||||||
pip install --upgrade platformio
|
pip install --upgrade platformio
|
||||||
- name: Run PlatformIO CI
|
- name: Run PlatformIO CI
|
||||||
run: platformio run
|
run: platformio run
|
||||||
- uses: actions/upload-artifact@v2
|
- name: Upload artifacts
|
||||||
|
uses: actions/upload-artifact@v2
|
||||||
with:
|
with:
|
||||||
name: firmware
|
name: firmware
|
||||||
path: .pio/build/lora_board/firmware.bin
|
path: .pio/build/lora_board/firmware.bin
|
||||||
|
@ -72,27 +74,27 @@ jobs:
|
||||||
- 'lib/System'
|
- 'lib/System'
|
||||||
#- 'lib/TimeLib'
|
#- 'lib/TimeLib'
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v2
|
- name: Checkout code
|
||||||
|
uses: actions/checkout@v2
|
||||||
- name: Run clang-format style check for C/C++ programs.
|
- name: Run clang-format style check for C/C++ programs.
|
||||||
uses: jidicula/clang-format-action@v3.2.0
|
uses: jidicula/clang-format-action@v3.2.0
|
||||||
with:
|
with:
|
||||||
clang-format-version: '11'
|
clang-format-version: '11'
|
||||||
check-path: ${{ matrix.path }}
|
check-path: ${{ matrix.path }}
|
||||||
|
|
||||||
# cppcheck:
|
cppcheck:
|
||||||
# name: Run Cppcheck
|
name: Run Cppcheck
|
||||||
# runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
# steps:
|
steps:
|
||||||
# - uses: actions/checkout@v2
|
- name: checkout code
|
||||||
# - name: Run Cppcheck
|
uses: actions/checkout@v2
|
||||||
# uses: Bedzior/cppcheck-action
|
- run: docker pull facthunder/cppcheck:latest
|
||||||
# with:
|
- name: Run Cppcheck
|
||||||
# enabled checks: all
|
run: docker run --rm -v ${PWD}:/src facthunder/cppcheck:latest cppcheck -v --xml --enable=all . 2> report.xml
|
||||||
# enable inconclusive: true
|
- name: Generate HTML report
|
||||||
# generate report: true
|
run: docker run --rm -v ${PWD}:/src facthunder/cppcheck:latest cppcheck-htmlreport --file=report.xml --report-dir=output
|
||||||
# - name: Upload report
|
- name: Upload report
|
||||||
# uses: actions/upload-artifact@v1
|
uses: actions/upload-artifact@v1
|
||||||
# with:
|
with:
|
||||||
# name: report
|
name: Cppcheck Report
|
||||||
# path: output
|
path: output
|
||||||
|
|
||||||
|
|
|
@ -3,3 +3,5 @@
|
||||||
.vscode/c_cpp_properties.json
|
.vscode/c_cpp_properties.json
|
||||||
.vscode/launch.json
|
.vscode/launch.json
|
||||||
.vscode/ipch
|
.vscode/ipch
|
||||||
|
report.xml
|
||||||
|
output
|
||||||
|
|
Ładowanie…
Reference in New Issue