mirror of https://github.com/zkat/miette.git
ci(doc consistency): check that lib.rs and README.md are consistent (#353)
This commit is contained in:
parent
22b29eec38
commit
24a7bf4f4e
|
|
@ -16,6 +16,12 @@ jobs:
|
||||||
with:
|
with:
|
||||||
toolchain: stable
|
toolchain: stable
|
||||||
components: rustfmt
|
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
|
- name: rustfmt
|
||||||
run: cargo fmt --all -- --check
|
run: cargo fmt --all -- --check
|
||||||
- name: docs
|
- name: docs
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue