Skip to content

Commit

Permalink
Run all examples in CI
Browse files Browse the repository at this point in the history
  • Loading branch information
TheQuantumPhysicist committed Apr 17, 2024
1 parent 673e41a commit 0bc30c2
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,9 @@ jobs:
run: cargo test --release --workspace
- name: Run doc tests
run: cargo test --release --doc
- name: Run all examples
shell: bash
run: ls examples/*.rs | xargs -n1 -I{} sh -c 'cargo run --example $(basename {} .rs)'

build_ubuntu:
env:
Expand All @@ -57,6 +60,8 @@ jobs:
run: cargo test --release --workspace
- name: Run doc tests
run: cargo test --release --doc
- name: Run all examples
run: ls examples/*.rs | xargs -n1 -I{} sh -c 'cargo run --example $(basename {} .rs)'

build_macos:
runs-on: macos-latest
Expand All @@ -76,3 +81,5 @@ jobs:
run: cargo test --release --workspace
- name: Run doc tests
run: cargo test --release --doc
- name: Run all examples
run: ls examples/*.rs | xargs -n1 -I{} sh -c 'cargo run --example $(basename {} .rs)'

0 comments on commit 0bc30c2

Please sign in to comment.