Skip to content

Commit

Permalink
add miri to CI
Browse files Browse the repository at this point in the history
  • Loading branch information
mkatychev committed Sep 3, 2024
1 parent cd73167 commit 5c4c239
Showing 1 changed file with 17 additions and 19 deletions.
36 changes: 17 additions & 19 deletions .github/workflows/lint_and_test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,32 +4,30 @@ name: Lint and Test
on: [push, pull_request]

jobs:
fmt:
name: fmt
lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- run: rustup update
- run: rustup component add rustfmt
- uses: actions/checkout@v4
- uses: dtolnay/rust-toolchain@stable
with:
components: rustfmt,clippy
- run: cargo fmt -- --check
- run: cargo clippy --all-targets

clippy:
test:
name: clippy
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- run: rustup update
- run: rustup component add clippy
- run: cargo clippy --all --all-targets --all-features
- uses: actions/checkout@v4
- uses: dtolnay/rust-toolchain@stable
- run: cargo build
- run: cargo test --verbose --all
env:
RUST_BACKTRACE: 1

test:
miri-test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
with:
submodules: true
- run: rustup update
- run: cargo build --all-features
- run: cargo test --verbose --all --all-features
env:
RUST_BACKTRACE: 1
- uses: actions/checkout@v4
- uses: dtolnay/rust-toolchain@nightly
- run: cargo +nightly miri test

0 comments on commit 5c4c239

Please sign in to comment.