Skip to content

Commit

Permalink
Add tests with miri to CI
Browse files Browse the repository at this point in the history
  • Loading branch information
pcwizz committed Nov 12, 2023
1 parent e5c496e commit 86e3bca
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
9 changes: 9 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -50,3 +50,12 @@ jobs:
if: (!contains(matrix.platform.target, 'android') && !contains(matrix.platform.target, 'ios'))
run: cargo test --verbose --target ${{ matrix.platform.target }} --features linux-body

- name: install nightly
uses: dtolnay/rust-toolchain@nightly
with:
targets: ${{ matrix.platform.target }}
components: miri

- name: Run tests with miri
if: (!contains(matrix.platform.target, 'android') && !contains(matrix.platform.target, 'ios'))
run: cargo +nightly miri test --verbose --target ${{ matrix.platform.target }} --features linux-body
1 change: 1 addition & 0 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1568,6 +1568,7 @@ mod tests {
use super::*;

#[test]
#[cfg_attr(miri, ignore)]
fn should_get_webview_version() {
if let Err(error) = webview_version() {
panic!("{}", error);
Expand Down

0 comments on commit 86e3bca

Please sign in to comment.