From a160e065118aca95d0c637978c94a99d011abd94 Mon Sep 17 00:00:00 2001 From: Daan Steenbergen Date: Fri, 6 Oct 2023 14:56:18 +0200 Subject: [PATCH] ci: make ctest output where tests fail if they do --- .github/workflows/build.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 4f894893..56eb243c 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -38,7 +38,7 @@ jobs: build-wrapper-linux-x86-64 --out-dir ${{ env.BUILD_WRAPPER_OUT_DIR }} cmake --build build/ --config ${{ env.BUILD_TYPE }} - name: Run working-directory: ${{github.workspace}}/build - run: ctest -C ${{ env.BUILD_TYPE }} + run: ctest -C ${{ env.BUILD_TYPE }} --rerun-failed --output-on-failure - name: Collect coverage into one XML report run: | gcovr --sonarqube --exclude-throw-branches > coverage.xml @@ -68,7 +68,7 @@ jobs: - name: Test run: | cd build - ctest -C ${{ env.BUILD_TYPE }} + ctest -C ${{ env.BUILD_TYPE }} --rerun-failed --output-on-failure mac_os_build: @@ -87,4 +87,4 @@ jobs: - name: Test run: | cd build - ctest -C ${{ env.BUILD_TYPE }} + ctest -C ${{ env.BUILD_TYPE }} --rerun-failed --output-on-failure