File tree 2 files changed +8
-2
lines changed
2 files changed +8
-2
lines changed Original file line number Diff line number Diff line change 70
70
uses : Swatinem/rust-cache@v2
71
71
- name : Run tests
72
72
run : cargo test --features "${{ matrix.fn_features }} ${{ matrix.cfg_feature }}" --verbose
73
+ - name : Run examples
74
+ if : matrix.fn_features != ''
75
+ run : |
76
+ for example in `ls spdlog/examples/*.rs | xargs basename --suffix=.rs`; do
77
+ cargo run --features "${{ matrix.fn_features }} ${{ matrix.cfg_feature }}" --example ${example};
78
+ done
73
79
74
80
clippy :
75
81
strategy :
Original file line number Diff line number Diff line change @@ -74,8 +74,8 @@ fn main() -> Result<(), Box<dyn std::error::Error>> {
74
74
println ! ( "collected:\n {collected:#?}" ) ;
75
75
76
76
assert_eq ! ( collected. len( ) , 2 ) ;
77
- assert ! ( collected[ 0 ] . ends_with ( " [info] Hello, world!\n ") ) ;
78
- assert ! ( collected[ 1 ] . ends_with ( " [warn] Meow~\n ") ) ;
77
+ assert ! ( collected[ 0 ] . contains ( " [info]" ) && collected [ 0 ] . contains ( " Hello, world!") ) ;
78
+ assert ! ( collected[ 1 ] . contains ( " [warn]" ) && collected [ 1 ] . contains ( " Meow~") ) ;
79
79
80
80
Ok ( ( ) )
81
81
}
You can’t perform that action at this time.
0 commit comments