From 1487df45c9725f12b74d803c3948f1dec2f19b1f Mon Sep 17 00:00:00 2001 From: Nahor Date: Mon, 4 Mar 2024 14:15:43 -0800 Subject: [PATCH] ci(doc consistency): check that lib.rs and README.md are consistent --- .github/workflows/ci.yml | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 7ab9326e..233b6b45 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -16,6 +16,12 @@ jobs: with: toolchain: stable components: rustfmt + - name: Install cargo-readme + run: cargo install cargo-readme + - name: Check doc consistency + shell: bash + run: diff -q README.md <(cargo readme) + || { echo "::error::Update lib.rs then use cargo-readme to update README.md"; exit 1; } - name: rustfmt run: cargo fmt --all -- --check - name: docs