From d3705506b6278be9beb9f6a30ff32adb941112d5 Mon Sep 17 00:00:00 2001 From: Fabio Di Fabio Date: Mon, 2 Sep 2024 23:32:31 +0200 Subject: [PATCH] CI: new job to upload HTML test reports even if tests fail (#7555) Signed-off-by: Fabio Di Fabio --- .github/workflows/acceptance-tests.yml | 6 ++++++ .github/workflows/pre-review.yml | 6 ++++++ 2 files changed, 12 insertions(+) diff --git a/.github/workflows/acceptance-tests.yml b/.github/workflows/acceptance-tests.yml index 161d5d6da2..287f402bce 100644 --- a/.github/workflows/acceptance-tests.yml +++ b/.github/workflows/acceptance-tests.yml @@ -85,6 +85,12 @@ jobs: with: name: acceptance-node-${{matrix.runner_index}}-test-results path: 'acceptance-tests/tests/build/test-results/**/TEST-*.xml' + - name: Upload Acceptance Test HTML Reports + uses: actions/upload-artifact@5d5d22a31266ced268874388b861e4b58bb5c2f3 + if: success() || failure() + with: + name: acceptance-node-${{matrix.runner_index}}-test-html-reports + path: 'acceptance-tests/tests/build/reports/tests/**' accepttests-passed: name: "accepttests-passed" runs-on: ubuntu-22.04 diff --git a/.github/workflows/pre-review.yml b/.github/workflows/pre-review.yml index 0a5b3edf91..cba13f1ebd 100644 --- a/.github/workflows/pre-review.yml +++ b/.github/workflows/pre-review.yml @@ -141,6 +141,12 @@ jobs: with: name: unit-${{matrix.runner_index}}-test-results path: '**/test-results/**/TEST-*.xml' + - name: Upload Unit Test HTML Reports + uses: actions/upload-artifact@5d5d22a31266ced268874388b861e4b58bb5c2f3 + if: success() || failure() + with: + name: unit-${{matrix.runner_index}}-test-html-reports + path: '**/build/reports/tests/test/**' unittests-passed: name: "unittests-passed" runs-on: ubuntu-22.04