From d55c23e13e2212e0148947d8f40735de5735a63b Mon Sep 17 00:00:00 2001 From: Tim Van Wassenhove Date: Fri, 29 Mar 2024 00:07:22 +0100 Subject: [PATCH] ci: attempt to capture test results and upload them --- .github/workflows/test_suite.yml | 20 +++++++++++++++++++- 1 file changed, 19 insertions(+), 1 deletion(-) diff --git a/.github/workflows/test_suite.yml b/.github/workflows/test_suite.yml index 161726c..f8f10b9 100644 --- a/.github/workflows/test_suite.yml +++ b/.github/workflows/test_suite.yml @@ -16,9 +16,27 @@ jobs: with: submodules: recursive - uses: actions-rust-lang/setup-rust-toolchain@v1 + - name: Start minio run: ./ci/minio_start.sh - - run: cargo test --all-features + + - run: cargo test --all-features -- -Z unstable-options --format json --report-time | tee results.json + + - name: Prepare junit report + id: cargo_reporter + uses: innoq/action-cargo-test-report + with: + cargo-test-report-json: 'results.json' + + - name: Publish Test Report + uses: mikepenz/action-junit-report@main + if: always() # always run even if the previous step fails + with: + check_name: Test Report + fail_on_failure: true + require_tests: true + summary: ${{ steps.cargo_reporter.outputs.summary }} + - name: Stop minio run: ./ci/minio_stop.sh