test(lib): add CI job to test with Miri

This commit is contained in:
Ralf Jung
2022-03-27 14:44:50 -04:00
committed by Sean McArthur
parent 8834d5a2a7
commit e1138d716d

View File

@@ -16,6 +16,7 @@ jobs:
- style
- test
- msrv
- miri
- features
- ffi
- ffi-header
@@ -124,6 +125,27 @@ jobs:
command: check
args: --features full
miri:
name: Test with Miri
needs: [style]
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v1
- name: Install Rust
uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchain: nightly
components: miri
override: true
- name: Test
# Can't enable tcp feature since Miri does not support the tokio runtime
run: MIRIFLAGS="-Zmiri-disable-isolation" cargo miri test --features http1,http2,client,server,stream,nightly
features:
name: features
needs: [style]