Skip to content

Commit

Permalink
.github: put junit report into test artifacts
Browse files Browse the repository at this point in the history
  • Loading branch information
khancyr committed Nov 16, 2023
1 parent 4df48ea commit d3d0f91
Show file tree
Hide file tree
Showing 7 changed files with 51 additions and 0 deletions.
6 changes: 6 additions & 0 deletions .github/workflows/test_sitl_blimp.yml
Original file line number Diff line number Diff line change
Expand Up @@ -268,3 +268,9 @@ jobs:
path: /__w/ardupilot/ardupilot/logs
retention-days: 7

- uses: actions/upload-artifact@v3 # upload test results
if: success() || failure() # run this step even if previous step failed
with:
name: test-results-junit-${{matrix.config}}
path: /__w/ardupilot/ardupilot/autotest_result_*_junit.xml
retention-days: 1
14 changes: 14 additions & 0 deletions .github/workflows/test_sitl_copter.yml
Original file line number Diff line number Diff line change
Expand Up @@ -272,6 +272,13 @@ jobs:
path: /__w/ardupilot/ardupilot/logs
retention-days: 7

- uses: actions/upload-artifact@v3 # upload test results
if: success() || failure() # run this step even if previous step failed
with:
name: test-results-junit
path: /__w/ardupilot/ardupilot/autotest_result_*_junit.xml
retention-days: 1

build-gcc-heli:
runs-on: ubuntu-22.04
container:
Expand Down Expand Up @@ -367,3 +374,10 @@ jobs:
name: BIN-${{matrix.config}}
path: /__w/ardupilot/ardupilot/logs
retention-days: 7

- uses: actions/upload-artifact@v3 # upload test results
if: success() || failure() # run this step even if previous step failed
with:
name: test-results-junit-${{matrix.config}}
path: /__w/ardupilot/ardupilot/autotest_result_*_junit.xml
retention-days: 1
6 changes: 6 additions & 0 deletions .github/workflows/test_sitl_plane.yml
Original file line number Diff line number Diff line change
Expand Up @@ -268,3 +268,9 @@ jobs:
path: /__w/ardupilot/ardupilot/logs
retention-days: 7

- uses: actions/upload-artifact@v3 # upload test results
if: success() || failure() # run this step even if previous step failed
with:
name: test-results-junit-${{matrix.config}}
path: /__w/ardupilot/ardupilot/autotest_result_*_junit.xml
retention-days: 1
6 changes: 6 additions & 0 deletions .github/workflows/test_sitl_rover.yml
Original file line number Diff line number Diff line change
Expand Up @@ -268,3 +268,9 @@ jobs:
path: /__w/ardupilot/ardupilot/logs
retention-days: 7

- uses: actions/upload-artifact@v3 # upload test results
if: success() || failure() # run this step even if previous step failed
with:
name: test-results-junit-${{matrix.config}}
path: /__w/ardupilot/ardupilot/autotest_result_*_junit.xml
retention-days: 1
6 changes: 6 additions & 0 deletions .github/workflows/test_sitl_sub.yml
Original file line number Diff line number Diff line change
Expand Up @@ -269,3 +269,9 @@ jobs:
path: /__w/ardupilot/ardupilot/logs
retention-days: 7

- uses: actions/upload-artifact@v3 # upload test results
if: success() || failure() # run this step even if previous step failed
with:
name: test-results-junit-${{matrix.config}}
path: /__w/ardupilot/ardupilot/autotest_result_*_junit.xml
retention-days: 1
6 changes: 6 additions & 0 deletions .github/workflows/test_sitl_tracker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -269,3 +269,9 @@ jobs:
path: /__w/ardupilot/ardupilot/logs
retention-days: 7

- uses: actions/upload-artifact@v3 # upload test results
if: success() || failure() # run this step even if previous step failed
with:
name: test-results-junit-${{matrix.config}}
path: /__w/ardupilot/ardupilot/autotest_result_*_junit.xml
retention-days: 1
7 changes: 7 additions & 0 deletions .github/workflows/test_unit_tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -155,3 +155,10 @@ jobs:
name: fail-${{ matrix.toolchain }}-${{matrix.config}}
path: /tmp/buildlogs
retention-days: 14

- uses: actions/upload-artifact@v3 # upload test results
if: success() || failure() # run this step even if previous step failed
with:
name: test-results-junit-${{ matrix.toolchain }}-${{matrix.config}}
path: /__w/ardupilot/ardupilot/autotest_result_*_junit.xml
retention-days: 1

0 comments on commit d3d0f91

Please sign in to comment.