Skip to content

Commit 750dec0

Browse files
authored
ci: integrate Sentry Prevent (#911)
1 parent d9cdf34 commit 750dec0

File tree

2 files changed

+18
-2
lines changed

2 files changed

+18
-2
lines changed

.config/nextest.toml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
[profile.ci]
2+
fail-fast = false
3+
4+
[profile.ci.junit]
5+
path = "junit.xml"

.github/workflows/ci.yml

Lines changed: 13 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -50,15 +50,26 @@ jobs:
5050

5151
name: Test using Rust stable on ${{ matrix.os }}
5252
runs-on: ${{ matrix.os }}
53+
permissions:
54+
id-token: write # required by `getsentry/prevent-action`
5355

5456
steps:
5557
- name: Checkout sources
5658
uses: actions/checkout@v4
5759

5860
- uses: Swatinem/rust-cache@v2
5961

60-
- name: Run cargo test
61-
run: cargo test --workspace --all-features --all-targets
62+
- uses: taiki-e/install-action@nextest
63+
64+
- name: Run tests with nextest
65+
run: cargo nextest run --profile ci --all-features --all-targets
66+
67+
- name: Upload test results to Sentry Prevent
68+
if: ${{ !cancelled() }}
69+
uses: getsentry/prevent-action@v0
70+
with:
71+
files: target/nextest/ci/junit.xml
72+
disable_search: true
6273

6374
MSRV:
6475
strategy:

0 commit comments

Comments
 (0)