From 77157a5fe1da43d4bf04e90edb16cf9fa1d49055 Mon Sep 17 00:00:00 2001 From: Temirkhan Myrzamadi Date: Tue, 31 Mar 2020 13:30:16 +0600 Subject: [PATCH] Test the examples in CI --- .github/workflows/ci.yml | 3 +++ .github/workflows/test_examples.sh | 9 +++++++++ 2 files changed, 12 insertions(+) create mode 100644 .github/workflows/test_examples.sh 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 +