Skip to content

Commit 36434c6

Browse files
committed
CI run examples for testing
1 parent df2aeff commit 36434c6

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

.github/workflows/ci.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -70,6 +70,12 @@ jobs:
7070
uses: Swatinem/rust-cache@v2
7171
- name: Run tests
7272
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
7379
7480
clippy:
7581
strategy:

0 commit comments

Comments
 (0)