restructure code

This commit is contained in:
Peter Buchegger 2023-09-23 13:37:35 +00:00
parent 8c2c217acc
commit 8f25ceddcf
57 changed files with 63 additions and 74 deletions

View file

@ -37,17 +37,6 @@ jobs:
formatting-check:
name: Formatting Check
runs-on: ubuntu-latest
strategy:
matrix:
path:
- 'src'
- 'lib/BoardFinder'
- 'lib/ConfigurationManagement'
#- 'lib/Display'
- 'lib/NTPClient'
- 'lib/PowerManagement'
- 'lib/System'
- 'lib/TimeLib'
steps:
- name: Checkout code
uses: actions/checkout@v3
@ -55,7 +44,7 @@ jobs:
uses: jidicula/clang-format-action@v4.10.2
with:
clang-format-version: '14'
check-path: ${{ matrix.path }}
check-path: src
cppcheck:
name: Run cppcheck
@ -81,24 +70,24 @@ jobs:
- name: Run PlatformIO Check
run: pio check --fail-on-defect high --fail-on-defect medium --fail-on-defect low -e lora_board
cppcheck-docker:
name: Run cppcheck in Docker
runs-on: ubuntu-latest
env:
CPPCHECK_ARGS: --enable=all --std=c++20 --inline-suppr -I lib/BoardFinder -I lib/ConfigurationManagement -I lib/Display -I lib/LoRa -I lib/LoRa_APRS -I lib/NTPClient -I lib/PowerManagement -I lib/System -I lib/TimeLib -i lib/Display -i lib/LoRa -i lib/NTPClient -i lib/TimeLib src lib
steps:
- name: checkout code
uses: actions/checkout@v3
- run: docker pull facthunder/cppcheck:latest
- name: Run cppcheck and print result
run: docker run --rm -v ${PWD}:/src facthunder/cppcheck:latest /bin/bash -c "cppcheck $CPPCHECK_ARGS"
- name: Run cppcheck and create html
run: docker run --rm -v ${PWD}:/src facthunder/cppcheck:latest /bin/bash -c "cppcheck --xml $CPPCHECK_ARGS 2> report.xml && cppcheck-htmlreport --file=report.xml --report-dir=output"
- name: Upload report
uses: actions/upload-artifact@v3
with:
name: Cppcheck Report
path: output
# cppcheck-docker:
# name: Run cppcheck in Docker
# runs-on: ubuntu-latest
# env:
# CPPCHECK_ARGS: --enable=all --std=c++20 --inline-suppr -I lib/BoardFinder -I lib/ConfigurationManagement -I lib/Display -I lib/LoRa -I lib/LoRa_APRS -I lib/NTPClient -I lib/PowerManagement -I lib/System -I lib/TimeLib -i lib/Display -i lib/LoRa -i lib/NTPClient -i lib/TimeLib src lib
# steps:
# - name: checkout code
# uses: actions/checkout@v3
# - run: docker pull facthunder/cppcheck:latest
# - name: Run cppcheck and print result
# run: docker run --rm -v ${PWD}:/src facthunder/cppcheck:latest /bin/bash -c "cppcheck $CPPCHECK_ARGS"
# - name: Run cppcheck and create html
# run: docker run --rm -v ${PWD}:/src facthunder/cppcheck:latest /bin/bash -c "cppcheck --xml $CPPCHECK_ARGS 2> report.xml && cppcheck-htmlreport --file=report.xml --report-dir=output"
# - name: Upload report
# uses: actions/upload-artifact@v3
# with:
# name: Cppcheck Report
# path: output
hw_testing:
name: Hardware Testing