Skip to content

Commit

Permalink
No commit message
Browse files Browse the repository at this point in the history
  • Loading branch information
EliSchleifer committed Feb 14, 2024
1 parent 921ac17 commit d1fc1dc
Show file tree
Hide file tree
Showing 3 changed files with 29 additions and 7 deletions.
24 changes: 24 additions & 0 deletions .config/nextest.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
[store]
dir = "target/nextest"

# This section defines the default nextest profile. Custom profiles are layered
# on top of the default profile.
[profile.default]
retries = 0
test-threads = "num-cpus"
threads-required = 1
status-level = "pass"
final-status-level = "flaky"
failure-output = "immediate"
success-output = "never"
fail-fast = true
slow-timeout = { period = "60s" }
report-name = "nextest-run"
store-success-output = false
store-failure-output = true

[profile.ci]
fail-fast = false

[profile.ci.junit]
path = "junit.xml"
10 changes: 4 additions & 6 deletions .github/workflows/pr.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,21 +13,19 @@ jobs:
- uses: actions/checkout@v4
- uses: dtolnay/rust-toolchain@nightly

- name: Install cargo2junit
run: cargo install cargo2junit
- name: Install nexttest
run: curl -LsSf https://get.nexte.st/latest/linux | tar zxf - -C ${CARGO_HOME:-~/.cargo}/bin

- name: Run tests
run: cargo test -q -- -Z unstable-options --format json --report-time | cargo2junit > ${{ github.workspace }}/target/junit.xml
run: cargo nextest run --profile=ci

- name: Upload results
# Run this step even if the test step ahead fails
if: "!cancelled()"
uses: trunk-io/analytics-uploader@main
with:
# Path to your test results.
junit-paths: ${{ github.workspace }}/target/**/*junit.xml \
junit-paths: ${{ github.workspace }}/target/nextest/ci/*junit.xml
org-slug: trunk-staging-org
# Provide your Trunk API token as a GitHub secret.
token: ${{ secrets.TRUNK_API_TOKEN }}
continue-on-error: true

Expand Down
2 changes: 1 addition & 1 deletion rust-toolchain.toml
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
[toolchain]
channel = "nightly"
channel = "1.76.0"

0 comments on commit d1fc1dc

Please sign in to comment.