Add cargo test to CI run and fix an error found by it

Besides the normal usage of unit-tests this also ensures that
example in doc-comments do at least compile.
This commit is contained in:
tdittr 2021-04-27 11:59:44 +02:00
parent ca8273b2c5
commit 39f02c4a44
2 changed files with 5 additions and 1 deletions

View file

@ -25,3 +25,7 @@ jobs:
with: with:
command: clippy command: clippy
args: -- -Dwarnings args: -- -Dwarnings
- uses: actions-rs/cargo@v1
with:
command: test
args: --target x86_64-unknown-linux-gnu