From a864f72ae7e9e0d1dda3cdfa1324f04bcaec5164 Mon Sep 17 00:00:00 2001 From: mulhern Date: Mon, 28 Jul 2025 16:10:14 -0400 Subject: [PATCH 1/2] Add a target for making doc tests Signed-off-by: mulhern --- Makefile | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Makefile b/Makefile index 65e0346..2d4c483 100644 --- a/Makefile +++ b/Makefile @@ -40,11 +40,15 @@ audit: build: cargo ${BUILD} +doc-test: + cargo test --doc + .PHONY: audit build check-fedora-versions clippy + doc-test fmt fmt-ci test-compare-fedora-versions From d4cefa2c8a64f6b697b5e2d0669c518443670b1f Mon Sep 17 00:00:00 2001 From: mulhern Date: Mon, 28 Jul 2025 16:11:29 -0400 Subject: [PATCH 2/2] Run doc tests in CI Signed-off-by: mulhern --- .github/workflows/ci.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 705478f..784dd39 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -63,6 +63,8 @@ jobs: run: make -f Makefile fmt-ci - name: Run cargo clippy run: make -f Makefile clippy + - name: Run doc tests + run: make -f Makefile doc-test dependencies: runs-on: ubuntu-latest