Commit f05b121 1 parent f74543e commit f05b121 Copy full SHA for f05b121
File tree 2 files changed +13
-2
lines changed
2 files changed +13
-2
lines changed Original file line number Diff line number Diff line change 5
5
- main
6
6
pull_request :
7
7
paths :
8
+ - " *"
8
9
- " bindings_ffi/**"
9
10
- " Cargo.toml"
10
11
- " Cargo.lock"
12
+ - " dev/**"
13
+ - " rust-toolchain"
14
+ - " .cargo/**"
11
15
jobs :
12
16
check-swift :
13
17
runs-on : warp-macos-13-arm64-6x
49
53
# We can add other targets later by making a pkg derivation and configuring LD_LIBRARY_PATH
50
54
# according to https://github.com/bburdette/tauri-zknotes/blob/7aa3495dc2c8a266d81c2fa3e51ae347e9c2597d/flake.nix#L158
51
55
# but this is good for just checking to ensure it compiles on this target
56
+ # Can also run android emulator here after cloning xmtp-android
52
57
steps :
53
58
- name : Checkout
54
59
uses : actions/checkout@v4
Original file line number Diff line number Diff line change @@ -51,9 +51,7 @@ mod ios {
51
51
let libxmtp_filter = EnvFilter :: builder ( )
52
52
. parse ( FILTER_DIRECTIVE )
53
53
. unwrap_or_else ( |_| EnvFilter :: new ( "info" ) ) ;
54
-
55
54
let subsystem = format ! ( "org.xmtp.{}" , env!( "CARGO_PKG_NAME" ) ) ;
56
-
57
55
OsLogger :: new ( subsystem, "default" ) . with_filter ( libxmtp_filter)
58
56
}
59
57
}
@@ -104,11 +102,19 @@ pub use test_logger::*;
104
102
#[ cfg( test) ]
105
103
mod test_logger {
106
104
use super :: * ;
105
+ use tracing_subscriber:: EnvFilter ;
107
106
108
107
pub fn native_layer < S > ( ) -> impl Layer < S >
109
108
where
110
109
S : Subscriber + for < ' a > LookupSpan < ' a > ,
111
110
{
112
111
xmtp_common:: logger_layer ( )
113
112
}
113
+
114
+ #[ test]
115
+ fn test_directive ( ) {
116
+ let _filer = EnvFilter :: builder ( )
117
+ . parse ( FILTER_DIRECTIVE )
118
+ . expect ( "should parse correctly" ) ;
119
+ }
114
120
}
You can’t perform that action at this time.
0 commit comments