ci(doc consistency): check that lib.rs and README.md are consistent

This commit is contained in:
Nahor 2024-03-04 14:15:43 -08:00
parent 22b29eec38
commit 1487df45c9
1 changed files with 6 additions and 0 deletions

View File

@ -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