diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 343818e1..66eb80eb 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -50,4 +50,4 @@ jobs: override: true components: rustfmt, clippy - name: Test the examples - run: cargo check --examples + run: cd examples && bash test_examples.sh diff --git a/examples/test_examples.sh b/examples/test_examples.sh new file mode 100644 index 00000000..5218c096 --- /dev/null +++ b/examples/test_examples.sh @@ -0,0 +1,6 @@ +##!/bin/sh + +for example in */; do + echo Testing $example... + cd $example; cargo check; cd ..; +done