From 06a9adf9eb0923b5468714d8eef6d38aa8692602 Mon Sep 17 00:00:00 2001 From: Daniel Noland Date: Mon, 28 Oct 2024 10:07:18 -0600 Subject: [PATCH] nextest for release builds --- .config/nextest.toml | 10 ++++++++++ .github/workflows/sterile-build-and-test.yml | 20 +++++++++++++------- 2 files changed, 23 insertions(+), 7 deletions(-) diff --git a/.config/nextest.toml b/.config/nextest.toml index 2b31ac81..d284c7ac 100644 --- a/.config/nextest.toml +++ b/.config/nextest.toml @@ -2,3 +2,13 @@ path = "junit.xml" store-success-output = true store-failure-output = true + +[profile.debug.junit] +path = "junit.xml" +store-success-output = true +store-failure-output = true + +[profile.release.junit] +path = "junit.xml" +store-success-output = true +store-failure-output = true diff --git a/.github/workflows/sterile-build-and-test.yml b/.github/workflows/sterile-build-and-test.yml index 7bec84e7..3244c7cd 100644 --- a/.github/workflows/sterile-build-and-test.yml +++ b/.github/workflows/sterile-build-and-test.yml @@ -52,12 +52,18 @@ jobs: - uses: actions/setup-node@v4 with: node-version: "latest" - - run: just rust="${{matrix.rust}}" sterile cargo nextest --profile ci run --locked --target=x86_64-unknown-linux-gnu - - run: npx --yes xunit-viewer -r sterile/target/nextest/ci/junit.xml --output sterile/target/nextest/ci/ci.x86_64-unknown-linux-gnu.html - - run: just rust="${{matrix.rust}}" sterile cargo nextest --profile ci run --locked --target=x86_64-unknown-linux-musl - - run: npx --yes xunit-viewer -r sterile/target/nextest/ci/junit.xml --output sterile/target/nextest/ci/ci.x86_64-unknown-linux-musl.html - - run: just rust="${{matrix.rust}}" sterile cargo test --locked --profile=release --target=x86_64-unknown-linux-gnu - - run: just rust="${{matrix.rust}}" sterile cargo test --locked --profile=release --target=x86_64-unknown-linux-musl + + - run: just rust="${{matrix.rust}}" sterile cargo nextest --profile default run --locked --profile=debug --target=x86_64-unknown-linux-gnu + - run: npx --yes xunit-viewer -r sterile/target/nextest/default/junit.xml --output sterile/target/nextest/default/debug.x86_64-unknown-linux-gnu.html + + - run: just rust="${{matrix.rust}}" sterile cargo nextest --profile default run --locked --profile=debug --target=x86_64-unknown-linux-musl + - run: npx --yes xunit-viewer -r sterile/target/nextest/default/junit.xml --output sterile/target/nextest/default/debug.x86_64-unknown-linux-musl.html + + - run: just rust="${{matrix.rust}}" sterile cargo nextest --profile default run --locked --profile=release --target=x86_64-unknown-linux-gnu + - run: npx --yes xunit-viewer -r sterile/target/nextest/default/junit.xml --output sterile/target/nextest/default/release.x86_64-unknown-linux-gnu.html + + - run: just rust="${{matrix.rust}}" sterile cargo nextest --profile default run --locked --profile=release --target=x86_64-unknown-linux-musl + - run: npx --yes xunit-viewer -r sterile/target/nextest/default/junit.xml --output sterile/target/nextest/default/release.x86_64-unknown-linux-musl.html - run: just rust="${{matrix.rust}}" profile=debug target=x86_64-unknown-linux-gnu push-container - run: just rust="${{matrix.rust}}" profile=release target=x86_64-unknown-linux-gnu push-container @@ -67,7 +73,7 @@ jobs: - uses: actions/upload-artifact@v4 with: name: 'test-results' - path: sterile/target/nextest/ci/ + path: sterile/target/nextest/default/ retention-days: 10 overwrite: 'true' compression-level: '0'