diff --git a/.config/nextest.toml b/.config/nextest.toml index a18eadce8bfe..22498d0789e3 100644 --- a/.config/nextest.toml +++ b/.config/nextest.toml @@ -1,6 +1,9 @@ [profile.default] slow-timeout = { period = "10s", terminate-after = 3 } +[profile.default.junit] +path = "junit.xml" + # This test downloads bundles from the network, which can take a while. # It is only run on CI, so we can afford to be more patient. [[profile.default.overrides]] diff --git a/.github/workflows/unit-tests.yml b/.github/workflows/unit-tests.yml index fa4f4ad647bf..f60481011ae4 100644 --- a/.github/workflows/unit-tests.yml +++ b/.github/workflows/unit-tests.yml @@ -83,3 +83,11 @@ jobs: FOREST_TEST_SKIP_PROOF_PARAM_CHECK: 1 # https://docs.github.com/en/actions/reference/runners/github-hosted-runners#standard-github-hosted-runners-for-public-repositories CARGO_BUILD_JOBS: 3 + - name: Upload Test Results to CodeCov + uses: codecov/codecov-action@v5 + if: ${{ !cancelled() }} + with: + token: ${{ secrets.CODECOV_TOKEN }} + report_type: "test_results" + files: target/nextest/default/junit.xml + fail_ci_if_error: false