From 28eb816b050c1c0885a4818262a3fd29f4a9ca55 Mon Sep 17 00:00:00 2001 From: overlookmotel Date: Wed, 26 Feb 2025 10:31:12 +0000 Subject: [PATCH] ci(miri): run Miri on `oxc_ast` crate (#9370) #9359 introduced unsafe code to `oxc_ast` crate. Run Miri on `oxc_ast` crate, but only when the files containing that unsafe code are altered. --- .github/workflows/miri.yml | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/.github/workflows/miri.yml b/.github/workflows/miri.yml index 5235ed1fb0606..7b3cc20bc9b88 100644 --- a/.github/workflows/miri.yml +++ b/.github/workflows/miri.yml @@ -8,6 +8,8 @@ on: types: [opened, synchronize] paths: - "crates/oxc_allocator/**" + - "crates/oxc_ast/src/utf8_to_utf16.rs" + - "crates/oxc_ast/src/generated/utf8_to_utf16_converter.rs" - "crates/oxc_data_structures/**" - "crates/oxc_parser/**" - "crates/oxc_traverse/**" @@ -17,6 +19,8 @@ on: - main paths: - "crates/oxc_allocator/**" + - "crates/oxc_ast/src/utf8_to_utf16.rs" + - "crates/oxc_ast/src/generated/utf8_to_utf16_converter.rs" - "crates/oxc_data_structures/**" - "crates/oxc_parser/**" - "crates/oxc_traverse/**" @@ -47,5 +51,6 @@ jobs: - name: Test with Miri run: | + cargo miri test -p oxc_ast --all-features cargo miri test -p oxc_parser cargo miri test -p oxc_transformer