From 51ba44f15e9c3e4e71c293a411756fdbdc013820 Mon Sep 17 00:00:00 2001 From: Djuri Baars Date: Tue, 28 Nov 2023 02:10:06 +0100 Subject: [PATCH] Add unit test and reporting to workflow --- .github/workflows/workflow.yml | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/.github/workflows/workflow.yml b/.github/workflows/workflow.yml index 5df00db..7ab7b37 100644 --- a/.github/workflows/workflow.yml +++ b/.github/workflows/workflow.yml @@ -36,7 +36,13 @@ jobs: run: echo "dateAndTime=$(date +'%Y-%m-%d-%H:%M')" >> $GITHUB_OUTPUT - name: Install PlatformIO Core 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 run: pio run -e lolin_s3_mini_qr