From 519c768edfc8b1617e0cee6dcf67897cfcd9be28 Mon Sep 17 00:00:00 2001 From: Cole Miller Date: Tue, 27 Aug 2024 14:55:23 -0400 Subject: [PATCH] Make sure test output is captured Signed-off-by: Cole Miller --- .github/workflows/build-and-test.yml | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/.github/workflows/build-and-test.yml b/.github/workflows/build-and-test.yml index 665f85d55..7c3f6b060 100644 --- a/.github/workflows/build-and-test.yml +++ b/.github/workflows/build-and-test.yml @@ -48,14 +48,20 @@ jobs: CC: ${{ matrix.compiler }} LIBDQLITE_TRACE: 1 run: | - make check || (cat ./test-suite.log && false) + for bin in unit-test integration-test \ + raft-core-fuzzy-test raft-core-integration-test \ + raft-core-unit-test raft-uv-integration-test \ + raft-uv-unit-test + do ./$bin || touch any-failed + done >test-suite.log 2>&1 + test '!' -e any-failed - name: OnTestFailure if: ${{ failure() }} uses: actions/upload-artifact@v3 with: - name: test-suite.log - path: test-suite.log + name: test-suite.log + path: test-suite.log - name: Coverage env: