Test the examples in CI

This commit is contained in:
Temirkhan Myrzamadi 2020-03-31 13:30:16 +06:00
parent e0ab813554
commit 77157a5fe1
2 changed files with 12 additions and 0 deletions

View file

@ -70,3 +70,6 @@ jobs:
with: with:
command: fmt command: fmt
args: --all -- --check args: --all -- --check
- name: Test the examples
command: ./test_examples.sh

9
.github/workflows/test_examples.sh vendored Normal file
View file

@ -0,0 +1,9 @@
##!/bin/sh
cd ../../
for example in examples/*; do
echo Testing $example...
cd $example; cargo check; cd ../..;
done