Skip to content

Commit

Permalink
ci(doc consistency): check that lib.rs and README.md are consistent (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
Nahor committed Mar 7, 2024
1 parent 22b29ee commit 24a7bf4
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions .github/workflows/ci.yml
Expand Up @@ -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
Expand Down

0 comments on commit 24a7bf4

Please sign in to comment.