From 751667f3833f5239bc1a7dca2eae28f1791999ff Mon Sep 17 00:00:00 2001 From: Johannes Stoelp Date: Tue, 5 Dec 2023 22:52:13 +0100 Subject: [ci]: run tests in example and generate doc for examples --- .github/workflows/rustdoc.yml | 2 +- .github/workflows/tests.yml | 3 +++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/.github/workflows/rustdoc.yml b/.github/workflows/rustdoc.yml index 35c261d..9d5246d 100644 --- a/.github/workflows/rustdoc.yml +++ b/.github/workflows/rustdoc.yml @@ -16,7 +16,7 @@ jobs: - name: Generate doc run: | - cargo doc --no-deps + cargo doc --no-deps --examples echo "" > target/doc/index.html - name: Upload doc to gh pages diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index c98d2fb..1c025c0 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -26,3 +26,6 @@ jobs: - name: Run tests run: cargo test --verbose + + - name: Run example tests + run: cargo test --examples --verbose -- cgit v1.2.3