Add unit test and reporting to workflow
This commit is contained in:
parent
f05b848030
commit
51ba44f15e
1 changed files with 7 additions and 1 deletions
8
.github/workflows/workflow.yml
vendored
8
.github/workflows/workflow.yml
vendored
|
@ -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
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue