diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 2f45616a..a0ccac87 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -70,3 +70,6 @@ jobs: with: command: fmt args: --all -- --check + + - name: Test the examples + command: ./test_examples.sh diff --git a/.github/workflows/test_examples.sh b/.github/workflows/test_examples.sh new file mode 100644 index 00000000..e3c03f1a --- /dev/null +++ b/.github/workflows/test_examples.sh @@ -0,0 +1,9 @@ +##!/bin/sh + +cd ../../ + +for example in examples/*; do + echo Testing $example... + cd $example; cargo check; cd ../..; +done +