Skip to content

Commit 5c4c239

Browse files
committed
add miri to CI
1 parent cd73167 commit 5c4c239

File tree

1 file changed

+17
-19
lines changed

1 file changed

+17
-19
lines changed

.github/workflows/lint_and_test.yml

+17-19
Original file line numberDiff line numberDiff line change
@@ -4,32 +4,30 @@ name: Lint and Test
44
on: [push, pull_request]
55

66
jobs:
7-
fmt:
8-
name: fmt
7+
lint:
98
runs-on: ubuntu-latest
109
steps:
11-
- uses: actions/checkout@v1
12-
- run: rustup update
13-
- run: rustup component add rustfmt
10+
- uses: actions/checkout@v4
11+
- uses: dtolnay/rust-toolchain@stable
12+
with:
13+
components: rustfmt,clippy
1414
- run: cargo fmt -- --check
15+
- run: cargo clippy --all-targets
1516

16-
clippy:
17+
test:
1718
name: clippy
1819
runs-on: ubuntu-latest
1920
steps:
20-
- uses: actions/checkout@v1
21-
- run: rustup update
22-
- run: rustup component add clippy
23-
- run: cargo clippy --all --all-targets --all-features
21+
- uses: actions/checkout@v4
22+
- uses: dtolnay/rust-toolchain@stable
23+
- run: cargo build
24+
- run: cargo test --verbose --all
25+
env:
26+
RUST_BACKTRACE: 1
2427

25-
test:
28+
miri-test:
2629
runs-on: ubuntu-latest
2730
steps:
28-
- uses: actions/checkout@v1
29-
with:
30-
submodules: true
31-
- run: rustup update
32-
- run: cargo build --all-features
33-
- run: cargo test --verbose --all --all-features
34-
env:
35-
RUST_BACKTRACE: 1
31+
- uses: actions/checkout@v4
32+
- uses: dtolnay/rust-toolchain@nightly
33+
- run: cargo +nightly miri test

0 commit comments

Comments
 (0)