mirror of
https://github.com/teloxide/teloxide.git
synced 2024-12-22 22:46:39 +01:00
Test the examples in CI
This commit is contained in:
parent
e0ab813554
commit
77157a5fe1
2 changed files with 12 additions and 0 deletions
3
.github/workflows/ci.yml
vendored
3
.github/workflows/ci.yml
vendored
|
@ -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
9
.github/workflows/test_examples.sh
vendored
Normal file
|
@ -0,0 +1,9 @@
|
||||||
|
##!/bin/sh
|
||||||
|
|
||||||
|
cd ../../
|
||||||
|
|
||||||
|
for example in examples/*; do
|
||||||
|
echo Testing $example...
|
||||||
|
cd $example; cargo check; cd ../..;
|
||||||
|
done
|
||||||
|
|
Loading…
Reference in a new issue