Skip to content

Commit 0d12731

Browse files
committed
Improve CI and add miri checks
1 parent 9ffac8c commit 0d12731

File tree

1 file changed

+25
-4
lines changed

1 file changed

+25
-4
lines changed

.github/workflows/ci.yml

Lines changed: 25 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -18,13 +18,31 @@ jobs:
1818
uses: taiki-e/install-action@nextest
1919

2020
- name: Run tests
21-
run: cargo nextest run --all-features
21+
run: cargo nextest run --no-fail-fast
2222

2323
- name: Check formatting
2424
run: cargo fmt --all -- --check
2525

2626
- name: Check clippy
27-
run: cargo clippy --all-targets --all-features
27+
run: cargo clippy
28+
29+
test-miri:
30+
name: Run tests with miri
31+
runs-on: ubuntu-latest
32+
steps:
33+
- uses: actions/checkout
34+
35+
- name: Setup rust
36+
run: rustup toolchain install nightly --profile minimal
37+
38+
- name: Add miri components
39+
run: rustup +nightly component add miri rust-src
40+
41+
- name: Install nextest to run tests
42+
uses: taiki-e/install-action@nextest
43+
44+
- name: Run tests
45+
run: cargo +nightly miri nextest run --no-fail-fast
2846

2947
msrv:
3048
name: MSRV check (1.85)
@@ -35,8 +53,11 @@ jobs:
3553
- name: Setup MSRV rust
3654
run: rustup toolchain install 1.85 --profile minimal
3755

56+
- name: Install nextest to run tests
57+
uses: taiki-e/install-action@nextest
58+
3859
- name: Check build with MSRV
39-
run: cargo +1.85 check --all-targets --all-features
60+
run: cargo +1.85 check
4061

4162
- name: Check tests compile with MSRV
42-
run: cargo +1.85 test --all-features --no-run
63+
run: cargo +1.85 nextest run --no-fail-fast

0 commit comments

Comments
 (0)