diff --git a/.config/nextest.toml b/.config/nextest.toml index 392dd29dfd..30702891de 100644 --- a/.config/nextest.toml +++ b/.config/nextest.toml @@ -12,6 +12,9 @@ final-status-level = "slow" failure-output = "immediate-final" fail-fast = false +[profile.ci.junit] +path = "junit.xml" + [profile.ci-linux] inherits = "ci" diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 73b8c48a83..41bcc87e7a 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -118,6 +118,15 @@ jobs: include-hidden-files: true retention-days: 14 + - name: "Upload JUnit results" + if: always() + uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7.0.1 + with: + name: junit-results-linux + path: target/nextest/ci*/junit.xml + if-no-files-found: ignore + retention-days: 14 + cargo-test-macos: timeout-minutes: 20 # Only run macOS tests on main without opt-in @@ -185,6 +194,15 @@ jobs: include-hidden-files: true retention-days: 14 + - name: "Upload JUnit results" + if: always() + uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7.0.1 + with: + name: junit-results-macos + path: target/nextest/ci*/junit.xml + if-no-files-found: ignore + retention-days: 14 + cargo-test-windows: timeout-minutes: 15 runs-on: github-windows-2025-x86_64-16 @@ -264,3 +282,12 @@ jobs: if-no-files-found: ignore include-hidden-files: true retention-days: 14 + + - name: "Upload JUnit results" + if: always() + uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7.0.1 + with: + name: junit-results-windows-${{ matrix.partition }} + path: target/nextest/ci*/junit.xml + if-no-files-found: ignore + retention-days: 14