diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 2f45616a..2c3af7b2 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -64,6 +64,9 @@ jobs: command: clippy args: --all-targets --all-features -- -D warnings + - name: Test the examples + run: cd examples && bash test_examples.sh + - name: fmt uses: actions-rs/cargo@v1 if: matrix.rust == 'nightly' diff --git a/examples/test_examples.sh b/examples/test_examples.sh new file mode 100644 index 00000000..195a3b4c --- /dev/null +++ b/examples/test_examples.sh @@ -0,0 +1,7 @@ +##!/bin/sh + +for example in */; do + echo Testing $example... + cd $example; cargo check; cd ..; +done +