From c8f66f4b1e2553e4e3968c31170c8d5f165da4a2 Mon Sep 17 00:00:00 2001 From: Vladimir Romanov Date: Mon, 2 Dec 2024 12:35:36 +0100 Subject: [PATCH] Try publish test reports --- .github/workflows/cmake-single-platform.yml | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/.github/workflows/cmake-single-platform.yml b/.github/workflows/cmake-single-platform.yml index 1987e6a..2422039 100644 --- a/.github/workflows/cmake-single-platform.yml +++ b/.github/workflows/cmake-single-platform.yml @@ -38,10 +38,13 @@ jobs: working-directory: ${{github.workspace}}/build # Execute tests defined by the CMake configuration. # See https://cmake.org/cmake/help/latest/manual/ctest.1.html for more detail - run: ctest --extra-verbose --output-junit test_report.xml -C ${{env.BUILD_TYPE}} + run: ctest --extra-verbose --output-junit test_report.xml --output-on-failure -C ${{env.BUILD_TYPE}} - name: Test run: ls -lr ${{github.workspace}}/build - - name: Publish Test Summary Results - run: npx github-actions-ctrf ${{github.workspace}}/build/test_report.xml + - name: Publish Test Results + uses: EnricoMi/publish-unit-test-result-action@v2 + if: always() + with: + files: ${{github.workspace}}/build/test_report.xml