From eab8313e29eca341b60104d38a9340a8c9e1301d Mon Sep 17 00:00:00 2001 From: Amos Wenger Date: Wed, 31 Jul 2024 19:55:47 +0200 Subject: [PATCH] Run examples in CI --- .github/workflows/test.yml | 7 +++++++ {examples => merde_json/examples}/mixed.rs | 0 {examples => merde_json/examples}/simple.rs | 0 {examples => merde_json/examples}/to_static.rs | 0 4 files changed, 7 insertions(+) rename {examples => merde_json/examples}/mixed.rs (100%) rename {examples => merde_json/examples}/simple.rs (100%) rename {examples => merde_json/examples}/to_static.rs (100%) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index f348c90..47542c0 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -25,3 +25,10 @@ jobs: cargo check -F merde_json,time-serialize cargo check -F merde_json,time-deserialize popd + - name: Run examples + run: | + pushd merde_json + cargo run --example simple + cargo run --example mixed + cargo run --example to_static + popd diff --git a/examples/mixed.rs b/merde_json/examples/mixed.rs similarity index 100% rename from examples/mixed.rs rename to merde_json/examples/mixed.rs diff --git a/examples/simple.rs b/merde_json/examples/simple.rs similarity index 100% rename from examples/simple.rs rename to merde_json/examples/simple.rs diff --git a/examples/to_static.rs b/merde_json/examples/to_static.rs similarity index 100% rename from examples/to_static.rs rename to merde_json/examples/to_static.rs