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

This commit is contained in:
Nahor 2024-03-07 12:20:08 -08:00 committed by GitHub
parent 22b29eec38
commit 24a7bf4f4e
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
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