From edaebf3b46194d24f168ab97504c42dd9ca05065 Mon Sep 17 00:00:00 2001 From: Hamish Coleman Date: Tue, 13 Jun 2023 19:59:59 +0100 Subject: [PATCH] Ensure that data from failed tests is not overwritten by other jobs --- .github/workflows/tests.yml | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index 9c6cebb..3da0500 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -25,6 +25,13 @@ jobs: ./configure make test + - if: ${{ failure() }} + name: Upload tests output + uses: actions/upload-artifact@v3 + with: + name: tests-smoketest + path: tests + smoketest_all_opts: name: Smoke test With all options turned on runs-on: ubuntu-latest @@ -174,7 +181,7 @@ jobs: name: Upload tests output uses: actions/upload-artifact@v3 with: - name: tests-out + name: tests-linux path: tests - name: Generate coverage reports @@ -244,7 +251,7 @@ jobs: name: Upload tests output uses: actions/upload-artifact@v3 with: - name: tests-out + name: tests-macos path: tests - name: Generate coverage reports @@ -321,7 +328,7 @@ jobs: name: Upload tests output uses: actions/upload-artifact@v3 with: - name: tests-out + name: tests-windows path: tests - name: Generate coverage data