Skip to content

Commit

Permalink
ci: Run examples in test workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
alecandido committed Jun 20, 2024
1 parent d134a97 commit 6297519
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,3 +30,12 @@ jobs:
- name: Test
run: |
cargo test --verbose
- name: Examples
run: |
examples=$(
cargo metadata --no-deps --format-version 1 |
jq '.packages[1].targets.[] | select(.kind | contains(["example"])) | .name' -r
)
for ex in $examples; do
cargo run --example $ex
done

0 comments on commit 6297519

Please sign in to comment.