Add unit test and reporting to workflow

This commit is contained in:
Djuri Baars 2023-11-28 02:10:06 +01:00
parent f05b848030
commit 51ba44f15e

View file

@ -36,7 +36,13 @@ jobs:
run: echo "dateAndTime=$(date +'%Y-%m-%d-%H:%M')" >> $GITHUB_OUTPUT run: echo "dateAndTime=$(date +'%Y-%m-%d-%H:%M')" >> $GITHUB_OUTPUT
- name: Install PlatformIO Core - name: Install PlatformIO Core
run: pip install --upgrade platformio run: pip install --upgrade platformio
- name: Run unit tests
run: mkdir -p junit-reports && pio test -e native_test_only --junit-output-path --junit-output-path junit-reports/
- name: Publish Test Report
uses: mikepenz/action-junit-report@v4
if: success() || failure() # always run even if the previous step fails
with:
report_paths: '**/junit-reports/*.xml'
- name: Build BTClock firmware - name: Build BTClock firmware
run: pio run -e lolin_s3_mini_qr run: pio run -e lolin_s3_mini_qr