aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorJohannes Stoelp <johannes.stoelp@gmail.com>2023-12-05 22:52:13 +0100
committerJohannes Stoelp <johannes.stoelp@gmail.com>2023-12-05 22:52:13 +0100
commit751667f3833f5239bc1a7dca2eae28f1791999ff (patch)
tree2e05332e13d5c62a92b0d1874f7e1a8cb168e9d7
parent3f47ede3d0a1aaf3a9176ab9c93b8d0e970388f2 (diff)
downloadjuicebox-asm-751667f3833f5239bc1a7dca2eae28f1791999ff.tar.gz
juicebox-asm-751667f3833f5239bc1a7dca2eae28f1791999ff.zip
[ci]: run tests in example and generate doc for examples
-rw-r--r--.github/workflows/rustdoc.yml2
-rw-r--r--.github/workflows/tests.yml3
2 files changed, 4 insertions, 1 deletions
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 "<meta http-equiv=\"Refresh\" content=\"0; url='juicebox_asm/index.html'\"/>" > 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