From 9ac918e58e1eb6563e299c9a76f5804611fd7569 Mon Sep 17 00:00:00 2001 From: Samer Afach Date: Wed, 17 Apr 2024 23:02:27 +0400 Subject: [PATCH] Run all examples in CI --- .github/workflows/build.yml | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index d0a2cc9..2798195 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -32,6 +32,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_ubuntu: env: @@ -57,6 +59,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 @@ -76,3 +80,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)'