Skip to content

Commit

Permalink
nextest for release builds
Browse files Browse the repository at this point in the history
  • Loading branch information
daniel-noland committed Oct 28, 2024
1 parent 99fef08 commit 06a9adf
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 7 deletions.
10 changes: 10 additions & 0 deletions .config/nextest.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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
20 changes: 13 additions & 7 deletions .github/workflows/sterile-build-and-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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'
Expand Down

0 comments on commit 06a9adf

Please sign in to comment.