diff --git a/.github/workflows/test_sitl_blimp.yml b/.github/workflows/test_sitl_blimp.yml index b346efdcbe699b..ba32da000d9c92 100644 --- a/.github/workflows/test_sitl_blimp.yml +++ b/.github/workflows/test_sitl_blimp.yml @@ -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 diff --git a/.github/workflows/test_sitl_copter.yml b/.github/workflows/test_sitl_copter.yml index c2133a5a1d4990..681fdf31698a3d 100644 --- a/.github/workflows/test_sitl_copter.yml +++ b/.github/workflows/test_sitl_copter.yml @@ -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: @@ -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 diff --git a/.github/workflows/test_sitl_plane.yml b/.github/workflows/test_sitl_plane.yml index 66bb9a7ebf3b18..1e5e369fbfaf54 100644 --- a/.github/workflows/test_sitl_plane.yml +++ b/.github/workflows/test_sitl_plane.yml @@ -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 diff --git a/.github/workflows/test_sitl_rover.yml b/.github/workflows/test_sitl_rover.yml index a6f3d669b32763..23c82ccfcca70e 100644 --- a/.github/workflows/test_sitl_rover.yml +++ b/.github/workflows/test_sitl_rover.yml @@ -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 diff --git a/.github/workflows/test_sitl_sub.yml b/.github/workflows/test_sitl_sub.yml index cbe5aaddf1b027..5f8d6d9470461d 100644 --- a/.github/workflows/test_sitl_sub.yml +++ b/.github/workflows/test_sitl_sub.yml @@ -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 diff --git a/.github/workflows/test_sitl_tracker.yml b/.github/workflows/test_sitl_tracker.yml index 8191e57483bf59..8376887e9ea252 100644 --- a/.github/workflows/test_sitl_tracker.yml +++ b/.github/workflows/test_sitl_tracker.yml @@ -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 diff --git a/.github/workflows/test_unit_tests.yml b/.github/workflows/test_unit_tests.yml index 02b174336f945b..ce9d868e146e71 100644 --- a/.github/workflows/test_unit_tests.yml +++ b/.github/workflows/test_unit_tests.yml @@ -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